mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
update
This commit is contained in:
parent
c680252868
commit
440ede60d4
@ -167,7 +167,10 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
if(id == NULL_WORLD_ID)
|
if(id == NULL_WORLD_ID)
|
||||||
{
|
{
|
||||||
|
#if (DEBUG && !DISABLE_DEBUG)
|
||||||
Throw.World_WorldCantBeDestroyed();
|
Throw.World_WorldCantBeDestroyed();
|
||||||
|
#endif
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
_listeners.InvokeOnWorldDestroy();
|
_listeners.InvokeOnWorldDestroy();
|
||||||
_entityDispenser = null;
|
_entityDispenser = null;
|
||||||
|
@ -131,7 +131,7 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
private sealed class NullWorld : EcsWorld
|
private sealed class NullWorld : EcsWorld
|
||||||
{
|
{
|
||||||
internal NullWorld() : base(ConfigContainer.Empty, 0) { }
|
internal NullWorld() : base(new EcsWorldConfig(4, 4, 4, 4, 4), 0) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user