-fixed README formating

This commit is contained in:
Mergul 2021-03-02 21:35:25 +01:00
parent efd3d64eac
commit 34a1066cfb

View file

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