-some documentation changes

-added Component onCreate callback which is called after allocating entity from template
This commit is contained in:
Mergul 2019-03-21 13:19:03 +01:00
parent b18440e9bc
commit a82ca1e659
4 changed files with 62 additions and 17 deletions

View file

@ -1,3 +1,6 @@
/************************************************************************************************************************
*System module.
*/
module ecs.system;
import ecs.entity;
@ -5,6 +8,13 @@ import ecs.manager;
/************************************************************************************************************************
*System contain data required to proper glue EntityManager with Systems.
*System callbacks:
*<br/>-void onEnable()
*<br/>-void onDisable();
*<br/>-bool onBegin();
*<br/>-void onEnd();
*<br/>-void onCreate()
*<br/>-void onDestroy();
*/
struct System
{