-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
20
import/ecs/id_manager.di
Normal file
20
import/ecs/id_manager.di
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// D import file generated from 'source\ecs\id_manager.d'
|
||||
module ecs.id_manager;
|
||||
import ecs.entity;
|
||||
import ecs.vector;
|
||||
struct IDManager
|
||||
{
|
||||
EntityID getNewID();
|
||||
void releaseID(EntityID id);
|
||||
void update(ref Entity entity);
|
||||
Entity* getEntityPointer(EntityID id);
|
||||
bool isExist(EntityID id);
|
||||
struct Data
|
||||
{
|
||||
uint counter = 0;
|
||||
uint next_id = (uint).max;
|
||||
Entity* entity = null;
|
||||
}
|
||||
private uint m_next_id = 0;
|
||||
Vector!Data m_ids_array;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue