mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
fix Define Symbols
This commit is contained in:
parent
121e33a307
commit
e1ae89ed7f
@ -276,8 +276,8 @@ namespace DCFApixels.DragonECS
|
|||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public int NewEntity(int entityID)
|
public int NewEntity(int entityID)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || !DISABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (IsUsed(entityID)) { Throw.World_EntityIsAlreadyСontained(entityID); }
|
if (entityID < _entities.Length && IsUsed(entityID)) { Throw.World_EntityIsAlreadyСontained(entityID); }
|
||||||
#endif
|
#endif
|
||||||
_entityDispenser.Use(entityID);
|
_entityDispenser.Use(entityID);
|
||||||
CreateConcreteEntity(entityID);
|
CreateConcreteEntity(entityID);
|
||||||
@ -324,7 +324,7 @@ namespace DCFApixels.DragonECS
|
|||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public void DelEntity(int entityID)
|
public void DelEntity(int entityID)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || !DISABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (IsUsed(entityID) == false) { Throw.World_EntityIsNotContained(entityID); }
|
if (IsUsed(entityID) == false) { Throw.World_EntityIsNotContained(entityID); }
|
||||||
#endif
|
#endif
|
||||||
UpVersion();
|
UpVersion();
|
||||||
@ -393,7 +393,7 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
public bool IsMatchesMask(EcsMask mask, int entityID)
|
public bool IsMatchesMask(EcsMask mask, int entityID)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || !DISABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (mask.WorldID != ID) { Throw.World_MaskDoesntBelongWorld(); }
|
if (mask.WorldID != ID) { Throw.World_MaskDoesntBelongWorld(); }
|
||||||
#endif
|
#endif
|
||||||
for (int i = 0, iMax = mask._incs.Length; i < iMax; i++)
|
for (int i = 0, iMax = mask._incs.Length; i < iMax; i++)
|
||||||
@ -794,7 +794,7 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
internal void ReleaseGroup(EcsGroup group)
|
internal void ReleaseGroup(EcsGroup group)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || !DISABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (group.World != this) { Throw.World_GroupDoesNotBelongWorld(); }
|
if (group.World != this) { Throw.World_GroupDoesNotBelongWorld(); }
|
||||||
#endif
|
#endif
|
||||||
group._isReleased = true;
|
group._isReleased = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user