optimizing network stuff

This commit is contained in:
2025-07-30 05:51:39 +02:00
parent ea99249fe2
commit 159e9adcd7
56 changed files with 2272 additions and 1781 deletions

View File

@@ -21,7 +21,7 @@ namespace RebootKit.Editor.Background {
EditorUtility.InstanceIDToObject(createEvent.instanceId) as GameObject;
if (gameObjectChanged != null && gameObjectChanged.TryGetComponent(out Actor actor)) {
actor.ActorID = UniqueID.NewULongFromGuid();
actor.ActorStaticID = UniqueID.NewULongFromGuid();
EditorUtility.SetDirty(actor);
}

View File

@@ -1,9 +1,9 @@
using UnityEngine;
using UnityEditor;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEngine;
namespace RebootKitEditor.Build {
namespace RebootKit.Editor.Build {
class BuildVersionBumper : IPostprocessBuildWithReport {
public int callbackOrder => 0;

View File

@@ -1,9 +1,9 @@
using System.IO;
using RebootKitEditor.Build;
using RebootKit.Editor.Build;
using UnityEditor;
using UnityEngine;
namespace RebootKitEditor {
namespace RebootKit.Editor {
static class CommonEditorActions {
[MenuItem(REditorConsts.k_EditorMenu + "Bump minor version", false, 0)]
static void BumpMinorVersion() {

View File

@@ -1,9 +1,9 @@
using RebootKit.Engine.Foundation;
using RebootKitEditor.Utils;
using RebootKit.Editor.Utils;
using RebootKit.Engine.Foundation;
using UnityEditor;
using UnityEngine;
namespace RebootKitEditor.PropertyDrawers {
namespace RebootKit.Editor.PropertyDrawers {
[CustomPropertyDrawer(typeof(ConfigVar))]
public class CVarDrawer : PropertyDrawer {
bool m_Expand;

View File

@@ -2,7 +2,7 @@
using UnityEditor;
using UnityEngine;
namespace RebootKitEditor.PropertyDrawers {
namespace RebootKit.Editor.PropertyDrawers {
[CustomPropertyDrawer(typeof(ConstsProperty<>))]
public class ConstsPropertyDrawer : PropertyDrawer {
const string k_InlineValue = "m_InlineValue";

View File

@@ -3,7 +3,7 @@ using RebootKit.Engine.Foundation;
using UnityEditor;
using UnityEngine;
namespace RebootKitEditor.PropertyDrawers {
namespace RebootKit.Editor.PropertyDrawers {
[CustomPropertyDrawer(typeof(SerializableGuid))]
public class SerializableGuidDrawer : PropertyDrawer {
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {

View File

@@ -2,7 +2,7 @@
using UnityEditor;
using UnityEngine;
namespace RebootKitEditor.PropertyDrawers {
namespace RebootKit.Editor.PropertyDrawers {
[CustomPropertyDrawer(typeof(FloatRange))]
public class ValueRangeDrawer : PropertyDrawer {
const string k_minPropertyName = "min";

View File

@@ -1,4 +1,4 @@
namespace RebootKitEditor {
namespace RebootKit.Editor {
static class REditorConsts {
internal const string k_EditorMenu = "Reboot Reality/";

View File

@@ -3,7 +3,7 @@ using RebootKit.Engine.UI;
using UnityEngine;
using UnityEngine.UIElements;
namespace RebootKitEditor.RebootWindow {
namespace RebootKit.Editor.RebootWindow {
public class ConfigVarsView : IView {
public void Dispose() {
}

View File

@@ -1,11 +1,10 @@
using RebootKit.Engine.Console;
using RebootKit.Engine.Main;
using RebootKit.Engine.UI;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
namespace RebootKitEditor.RebootWindow {
namespace RebootKit.Editor.RebootWindow {
public class HomeView : IView {
public void Dispose() {
}

View File

@@ -1,13 +1,10 @@
using RebootKit.Editor.RebootWindow;
using RebootKit.Engine;
using RebootKit.Engine.Foundation;
using RebootKit.Engine;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
using Logger = RebootKit.Engine.Foundation.Logger;
using TabView = RebootKit.Editor.RebootWindow.TabView;
namespace RebootKitEditor.RebootWindow {
namespace RebootKit.Editor.RebootWindow {
static class RTheme {
public static readonly Color s_FirstColor = ColorFromHex("#B9B8B9");
public static readonly Color s_SecondColor = ColorFromHex("#6B6B6B");

View File

@@ -1,6 +1,5 @@
using System.Collections.Generic;
using RebootKit.Engine.UI;
using RebootKitEditor.RebootWindow;
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.UIElements;

View File

@@ -1,14 +1,14 @@
using RebootKit.Engine;
using RebootKit.Editor.Utils;
using RebootKit.Engine;
using RebootKit.Engine.Simulation;
using RebootKit.Engine.UI;
using RebootKitEditor.Utils;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UIElements;
namespace RebootKitEditor.RebootWindow {
namespace RebootKit.Editor.RebootWindow {
public class WorldsView : IView {
public void Dispose() {
}

View File

@@ -1,7 +1,7 @@
using UnityEditor;
using UnityEngine;
namespace RebootKitEditor.Utils {
namespace RebootKit.Editor.Utils {
public static class AssetDatabaseEx {
public static T[] LoadAllAssets<T>() where T : Object {
string[] guids = AssetDatabase.FindAssets($"t:{typeof(T).Name}");

View File

@@ -1,6 +1,6 @@
using UnityEditor;
namespace RebootKitEditor.Utils {
namespace RebootKit.Editor.Utils {
public struct CVarSerializedProperties {
public SerializedProperty flags;
public SerializedProperty name;

View File

@@ -0,0 +1,17 @@
using UnityEditor;
using UnityEngine;
namespace RebootKit.Editor.Utils {
public static class DomainReloader {
[MenuItem(REditorConsts.k_EditorMenu + "Reload Domain", priority = 1000)]
public static void ReloadDomain() {
if (EditorApplication.isCompiling) {
Debug.LogError("Cannot reload domain while compiling.");
EditorUtility.DisplayDialog("Reload Domain", "Cannot reload domain while compiling.", "OK");
return;
}
EditorUtility.RequestScriptReload();
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 38260f05c1a7436cbe1813733e82ef56
timeCreated: 1753762882

View File

@@ -3,7 +3,7 @@ using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.UIElements;
namespace SzafaKitEditor.VisualElements {
namespace RebootKit.Editor.VisualElements {
public class CVarPropertyField : VisualElement {
readonly SerializedProperty _cvarProperty;
readonly SerializedProperty _defaultValueKindProperty;