-fixed getSystem function
This commit is contained in:
parent
41a7f22cb3
commit
783ef72eae
2 changed files with 6 additions and 1 deletions
|
|
@ -6,6 +6,11 @@ struct EntityID
|
||||||
{
|
{
|
||||||
uint id;
|
uint id;
|
||||||
uint counter;
|
uint counter;
|
||||||
|
|
||||||
|
/*int opCmp(ref const EntityID s) const
|
||||||
|
{
|
||||||
|
return id < s.id;
|
||||||
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Entity
|
struct Entity
|
||||||
|
|
|
||||||
|
|
@ -368,7 +368,7 @@ class EntityManager
|
||||||
|
|
||||||
Sys* getSystem(Sys)()
|
Sys* getSystem(Sys)()
|
||||||
{
|
{
|
||||||
return cast(Sys*) systems[Sys.system_id].system_pointer;
|
return cast(Sys*) systems[Sys.system_id].m_system_pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void registerComponent(Comp)()
|
void registerComponent(Comp)()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue