From cec6b210ec485fc8260fab0614ff03d9399a1cf5 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:44:45 +0800 Subject: [PATCH] update --- src/Connectors/EcsEntityConnect.cs | 2 +- src/Connectors/Editor/EcsWorldProviderBaseEditor.cs | 4 ++-- src/DebugUtils/Monitors/WorldMonitor.cs | 2 +- src/Internal/Editor/EcsGUI.cs | 2 +- src/Templates/EntityTemplate/ITemplateNode.cs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Connectors/EcsEntityConnect.cs b/src/Connectors/EcsEntityConnect.cs index e6d7372..c57cfbb 100644 --- a/src/Connectors/EcsEntityConnect.cs +++ b/src/Connectors/EcsEntityConnect.cs @@ -133,7 +133,7 @@ namespace DCFApixels.DragonECS goConnects.TryAddOrGet(newEntityID) = new GameObjectConnect(this); if (applyTemplates) { - ApplyTemplatesFor(world.id, newEntityID); + ApplyTemplatesFor(world.ID, newEntityID); } } } diff --git a/src/Connectors/Editor/EcsWorldProviderBaseEditor.cs b/src/Connectors/Editor/EcsWorldProviderBaseEditor.cs index 5d46751..2d8a12b 100644 --- a/src/Connectors/Editor/EcsWorldProviderBaseEditor.cs +++ b/src/Connectors/Editor/EcsWorldProviderBaseEditor.cs @@ -23,12 +23,12 @@ namespace DCFApixels.DragonECS.Unity.Editors if (world.IsDestroyed) { var style = UnityEditorUtility.GetStyle(new Color32(255, 75, 0, 100)); - GUILayout.Box($"{world.GetMeta().Name} ( {world.id} ) Destroyed", style, GUILayout.ExpandWidth(true)); + GUILayout.Box($"{world.GetMeta().Name} ( {world.ID} ) Destroyed", style, GUILayout.ExpandWidth(true)); } else { var style = UnityEditorUtility.GetStyle(new Color32(75, 255, 0, 100)); - GUILayout.Box($"{world.GetMeta().Name} ( {world.id} )", style, GUILayout.ExpandWidth(true)); + GUILayout.Box($"{world.GetMeta().Name} ( {world.ID} )", style, GUILayout.ExpandWidth(true)); } } EcsGUI.Layout.DrawWorldBaseInfo(Target.GetCurrentWorldRaw()); diff --git a/src/DebugUtils/Monitors/WorldMonitor.cs b/src/DebugUtils/Monitors/WorldMonitor.cs index 968dc45..466b93c 100644 --- a/src/DebugUtils/Monitors/WorldMonitor.cs +++ b/src/DebugUtils/Monitors/WorldMonitor.cs @@ -52,7 +52,7 @@ namespace DCFApixels.DragonECS.Unity.Internal return; } TypeMeta meta = _world.GetMeta(); - _monitor = new GameObject($"{UnityEditorUtility.TransformToUpperName(meta.Name)} ( {_world.id} )").AddComponent(); + _monitor = new GameObject($"{UnityEditorUtility.TransformToUpperName(meta.Name)} ( {_world.ID} )").AddComponent(); UnityEngine.Object.DontDestroyOnLoad(_monitor); _monitor.Set(_world); _monitor.gameObject.SetActive(false); diff --git a/src/Internal/Editor/EcsGUI.cs b/src/Internal/Editor/EcsGUI.cs index 2ba390c..2bb6c84 100644 --- a/src/Internal/Editor/EcsGUI.cs +++ b/src/Internal/Editor/EcsGUI.cs @@ -1043,7 +1043,7 @@ namespace DCFApixels.DragonECS.Unity.Editors } public static void DrawWorldBaseInfo(EcsWorld world) { - bool isNull = world == null || world.IsDestroyed || world.id == 0; + bool isNull = world == null || world.IsDestroyed || world.ID == 0; int entitesCount = isNull ? 0 : world.Count; int capacity = isNull ? 0 : world.Capacity; int leakedEntitesCount = isNull ? 0 : world.CountLeakedEntitesDebug(); diff --git a/src/Templates/EntityTemplate/ITemplateNode.cs b/src/Templates/EntityTemplate/ITemplateNode.cs index 5cafe4a..9087632 100644 --- a/src/Templates/EntityTemplate/ITemplateNode.cs +++ b/src/Templates/EntityTemplate/ITemplateNode.cs @@ -7,7 +7,7 @@ public static entlong NewEntityWithGameObject(this EcsWorld world, ITemplateNode template, string name = "Entity", GameObjectIcon icon = GameObjectIcon.NONE) { entlong e = world.NewEntityWithGameObject(name, icon); - template.Apply(world.id, e.ID); + template.Apply(world.ID, e.ID); return e; } }