-suport system callback: onCreate, onDestroy, onBegin, onEnd

-support for optional Components for System
-Components IDs in Systems are now stored as ushorts
This commit is contained in:
Mergul 2018-09-16 22:40:55 +02:00
parent 8fdb56e840
commit b3dce6560a
4 changed files with 180 additions and 60 deletions

View file

@ -38,11 +38,18 @@ package:
///pointer to system implementation
void* m_system_pointer;
uint[] m_components;
ushort[] m_components;
ushort[] m_optional_components;
//void function(ref EntityManager.CallData data, void* entity) update;
void* m_update; ///workaroud for DMD bug with upper line
void function(void* system_pointer) m_enable;
void function(void* system_pointer) m_disable;
void function(void* system_pointer) m_create;
void function(void* system_pointer) m_destroy;
void function(void* system_pointer) m_begin;
void function(void* system_pointer) m_end;
}