mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
rename NewEntity
This commit is contained in:
parent
f50697e43b
commit
0d1b005306
@ -146,7 +146,7 @@ namespace DCFApixels.DragonECS
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Entity
|
#region Entity
|
||||||
public int NewEmptyEntity()
|
public int NewEntity()
|
||||||
{
|
{
|
||||||
if(_freeSpace <= 1 && _delEntBufferCount > _delEntBufferMinCount)
|
if(_freeSpace <= 1 && _delEntBufferCount > _delEntBufferMinCount)
|
||||||
ReleaseDelEntityBuffer();
|
ReleaseDelEntityBuffer();
|
||||||
@ -163,9 +163,9 @@ namespace DCFApixels.DragonECS
|
|||||||
_entityListeners.InvokeOnNewEntity(entityID);
|
_entityListeners.InvokeOnNewEntity(entityID);
|
||||||
return entityID;
|
return entityID;
|
||||||
}
|
}
|
||||||
public entlong NewEmptyEntityLong()
|
public entlong NewEntityLong()
|
||||||
{
|
{
|
||||||
int e = NewEmptyEntity();
|
int e = NewEntity();
|
||||||
return GetEntityLong(e);
|
return GetEntityLong(e);
|
||||||
}
|
}
|
||||||
public void DelEntity(int entityID)
|
public void DelEntity(int entityID)
|
||||||
@ -252,13 +252,13 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
public int CloneEntity(int fromEntityID)
|
public int CloneEntity(int fromEntityID)
|
||||||
{
|
{
|
||||||
int newEntity = NewEmptyEntity();
|
int newEntity = NewEntity();
|
||||||
CopyEntity(fromEntityID, newEntity);
|
CopyEntity(fromEntityID, newEntity);
|
||||||
return newEntity;
|
return newEntity;
|
||||||
}
|
}
|
||||||
public int CloneEntity(int fromEntityID, EcsWorld toWorld)
|
public int CloneEntity(int fromEntityID, EcsWorld toWorld)
|
||||||
{
|
{
|
||||||
int newEntity = NewEmptyEntity();
|
int newEntity = NewEntity();
|
||||||
CopyEntity(fromEntityID, toWorld, newEntity);
|
CopyEntity(fromEntityID, toWorld, newEntity);
|
||||||
return newEntity;
|
return newEntity;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user