-fixed README formating
This commit is contained in:
parent
efd3d64eac
commit
34a1066cfb
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue