-fixed critical bug with adding components
-some fixes -minor optimization -added debug assert test
This commit is contained in:
parent
913cf1aef8
commit
19687b9f88
2 changed files with 29 additions and 19 deletions
|
|
@ -45,7 +45,7 @@ static struct ECS
|
|||
*/
|
||||
mixin template System(uint jobs_count = 32)
|
||||
{
|
||||
__gshared ushort system_id;
|
||||
__gshared ushort system_id = ushort.max;
|
||||
uint __ecs_jobs_count = jobs_count;
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ static struct ECS
|
|||
*/
|
||||
mixin template Component()
|
||||
{
|
||||
__gshared ushort component_id;
|
||||
__gshared ushort component_id = ushort.max;
|
||||
}
|
||||
|
||||
/************************************************************************************************************************
|
||||
|
|
@ -62,7 +62,7 @@ static struct ECS
|
|||
*/
|
||||
mixin template Event()
|
||||
{
|
||||
__gshared ushort event_id;
|
||||
__gshared ushort event_id = ushort.max;
|
||||
EntityID entity_id;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue