-changed README

-license changed to BSD (maybe temporary)
-added configurations to dub.json
-initial ECS implementation (WIP):
	-Manager, System, Entity, Component
	-registering components
	-registering systems
	-calling update
This commit is contained in:
DanielMz25 2018-09-07 20:54:29 +02:00
parent 8285bde71d
commit 6217aec6be
10 changed files with 265 additions and 11 deletions

16
source/ecs/system.d Normal file
View file

@ -0,0 +1,16 @@
module ecs.system;
import ecs.entity;
import ecs.manager;
struct System
{
///should system update and catch events?
bool enabled = true;
///system priority
int prority;
///pointer to system implementation
void* system_pointer;
void function(ref EntityManager.CallData data, void* entity) update;
}