-PageSize and PagesInBlock values can be adjust in runtime (at initialization time)
-added support for calling custon delegate function for all entities supported by selected system
This commit is contained in:
parent
1f78f2506c
commit
87e9a31d7f
3 changed files with 335 additions and 171 deletions
|
|
@ -77,9 +77,9 @@ struct System
|
|||
/************************************************************************************************************************
|
||||
*Get system name.
|
||||
*/
|
||||
export const (char)[] name() nothrow @nogc
|
||||
export const(char)[] name() nothrow @nogc
|
||||
{
|
||||
return cast(const (char)[])m_name;
|
||||
return cast(const(char)[]) m_name;
|
||||
}
|
||||
|
||||
struct EventCaller
|
||||
|
|
@ -120,10 +120,13 @@ package:
|
|||
ushort[] m_read_only_components;
|
||||
ushort[] m_modified_components;
|
||||
|
||||
EntityManager.SystemCaller* m_any_system_caller;
|
||||
|
||||
EventCaller[] m_event_callers;
|
||||
|
||||
//void function(ref EntityManager.CallData data) m_update;
|
||||
void* m_update; ///workaroud for DMD bug with upper line
|
||||
void delegate() m_update_delegate;
|
||||
|
||||
//void function(void* system_pointer) m_enable;
|
||||
//void function(void* system_pointer) m_disable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue