-added more documentation

-remove update() function from entity
-currently max supported components count is 64 per type
This commit is contained in:
Mergul 2020-03-21 13:27:14 +01:00
parent 546b73c567
commit 845f468d59
10 changed files with 199 additions and 64 deletions

View file

@ -7,7 +7,7 @@ import ecs.std;
import std.algorithm.comparison : max;
struct EventManager
package struct EventManager
{
void initialize(EntityManager* m) nothrow @nogc
@ -34,7 +34,7 @@ struct EventManager
EventData* data = &events[Ev.event_id];
EventBlock* block = data.blocks[block_id];
EntityManager.EventInfo* info = &gEM.events[Ev.event_id];
//EntityManager.EventInfo* info = &gEM.events[Ev.event_id];
event.entity_id = id;
if(block is null)