-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:
Mergul 2018-09-18 13:28:04 +02:00
parent cb0f56b0fb
commit d0fcdba6cd
20 changed files with 1322 additions and 105 deletions

View file

@ -33,7 +33,7 @@ struct IDManager
m_ids_array[entity.id.id].entity = &entity;
}
Entity* getEntityPointer(EntityID id)
export Entity* getEntityPointer(EntityID id)
{
Data* data = &m_ids_array[id.id];
if (data.counter != id.counter)
@ -42,7 +42,7 @@ struct IDManager
return data.entity;
}
bool isExist(EntityID id)
export bool isExist(EntityID id)
{
Data* data = &m_ids_array[id.id];
return data.counter == id.counter;