-registering same system multiple times only replace pointer for callback
-added export attributes (required by windows to make DLL library, not work at now due to DMD bugs) -interface D files to import
This commit is contained in:
parent
cb0f56b0fb
commit
d0fcdba6cd
20 changed files with 1322 additions and 105 deletions
|
|
@ -5,26 +5,26 @@ import ecs.manager;
|
|||
|
||||
struct System
|
||||
{
|
||||
bool enabled()
|
||||
export bool enabled()
|
||||
{
|
||||
return m_enabled;
|
||||
}
|
||||
|
||||
void enable()
|
||||
export void enable()
|
||||
{
|
||||
if (!m_enabled && m_enable)
|
||||
m_enable(m_system_pointer);
|
||||
m_enabled = true;
|
||||
}
|
||||
|
||||
void disable()
|
||||
export void disable()
|
||||
{
|
||||
if (m_enabled && m_disable)
|
||||
m_disable(m_system_pointer);
|
||||
m_enabled = false;
|
||||
}
|
||||
|
||||
int priority()
|
||||
export int priority()
|
||||
{
|
||||
return m_priority;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue