-changes in gitignore
-changed "absent" to "excluded" everywhere -added Events support: *systems are scanned by handleEvent() function *generate system callers for events *event sending have (untested) multithreaded support *EventInput structure in System has input components for event
This commit is contained in:
parent
16a5696840
commit
3bc5ff2423
8 changed files with 689 additions and 310 deletions
|
|
@ -61,6 +61,12 @@ struct System
|
|||
return m_id;
|
||||
}
|
||||
|
||||
struct EventCaller
|
||||
{
|
||||
ushort id;
|
||||
void* callback;
|
||||
}
|
||||
|
||||
package:
|
||||
|
||||
///should system be executed in current update?
|
||||
|
|
@ -82,8 +88,8 @@ package:
|
|||
|
||||
///required components
|
||||
ushort[] m_components;
|
||||
///absent components
|
||||
ushort[] m_absent_components;
|
||||
///excluded components
|
||||
ushort[] m_excluded_components;
|
||||
///optional components
|
||||
ushort[] m_optional_components;
|
||||
|
||||
|
|
@ -93,6 +99,8 @@ package:
|
|||
ushort[] m_read_only_components;
|
||||
ushort[] m_modified_components;
|
||||
|
||||
EventCaller[] m_event_callers;
|
||||
|
||||
//void function(ref EntityManager.CallData data) m_update;
|
||||
void* m_update; ///workaroud for DMD bug with upper line
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue