-some documentation changes
-added Component onCreate callback which is called after allocating entity from template
This commit is contained in:
parent
b18440e9bc
commit
a82ca1e659
4 changed files with 62 additions and 17 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue