From 0d1b005306524f538f4d7ecfbcc3363fa85b99dc Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:06:17 +0800 Subject: [PATCH] rename NewEntity --- src/EcsWorld.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/EcsWorld.cs b/src/EcsWorld.cs index ee0c24c..bd6ecef 100644 --- a/src/EcsWorld.cs +++ b/src/EcsWorld.cs @@ -146,7 +146,7 @@ namespace DCFApixels.DragonECS #endregion #region Entity - public int NewEmptyEntity() + public int NewEntity() { if(_freeSpace <= 1 && _delEntBufferCount > _delEntBufferMinCount) ReleaseDelEntityBuffer(); @@ -163,9 +163,9 @@ namespace DCFApixels.DragonECS _entityListeners.InvokeOnNewEntity(entityID); return entityID; } - public entlong NewEmptyEntityLong() + public entlong NewEntityLong() { - int e = NewEmptyEntity(); + int e = NewEntity(); return GetEntityLong(e); } public void DelEntity(int entityID) @@ -252,13 +252,13 @@ namespace DCFApixels.DragonECS } public int CloneEntity(int fromEntityID) { - int newEntity = NewEmptyEntity(); + int newEntity = NewEntity(); CopyEntity(fromEntityID, newEntity); return newEntity; } public int CloneEntity(int fromEntityID, EcsWorld toWorld) { - int newEntity = NewEmptyEntity(); + int newEntity = NewEntity(); CopyEntity(fromEntityID, toWorld, newEntity); return newEntity; }