-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()
|
||||
{
|
||||
//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();
|
||||
}
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue