mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
update
This commit is contained in:
parent
1f7ddfd958
commit
cec6b210ec
@ -133,7 +133,7 @@ namespace DCFApixels.DragonECS
|
||||
goConnects.TryAddOrGet(newEntityID) = new GameObjectConnect(this);
|
||||
if (applyTemplates)
|
||||
{
|
||||
ApplyTemplatesFor(world.id, newEntityID);
|
||||
ApplyTemplatesFor(world.ID, newEntityID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
|
@ -52,7 +52,7 @@ namespace DCFApixels.DragonECS.Unity.Internal
|
||||
return;
|
||||
}
|
||||
TypeMeta meta = _world.GetMeta();
|
||||
_monitor = new GameObject($"{UnityEditorUtility.TransformToUpperName(meta.Name)} ( {_world.id} )").AddComponent<WorldMonitor>();
|
||||
_monitor = new GameObject($"{UnityEditorUtility.TransformToUpperName(meta.Name)} ( {_world.ID} )").AddComponent<WorldMonitor>();
|
||||
UnityEngine.Object.DontDestroyOnLoad(_monitor);
|
||||
_monitor.Set(_world);
|
||||
_monitor.gameObject.SetActive(false);
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user