Documentation, standarization, etc. #18

Merged
Mergul merged 5 commits from Demos into master 2021-03-02 21:42:29 +01:00
Showing only changes of commit 34a1066cfb - Show all commits

View file

@ -149,10 +149,10 @@ struct UpdateSystem
void main()
{
//initialize ECS
EntityManager.initialize();
//initialize ECS
EntityManager.initialize();
//begin registering process
//begin registering process
gEntityManager.beginRegister();
//register components
gEntityManager.registerComponent!Position;
@ -160,7 +160,7 @@ void main()
gEntityManager.registerComponent!StaticFlag;
//register system with priority 0
gEntityManager.registerSystem!UpdateSystem(0);
//end registering process
//end registering process
gEntityManager.endRegister();
//allocate template
@ -180,8 +180,8 @@ void main()
gEntityManager.update(); //update all systems, there onUpdate callbacks are called
gEntityManager.end(); //end frame, inside system onEnd callbacks are called*/
//free ECS data
EntityManager.destroy();
//free ECS data
EntityManager.destroy();
}
```