Finish system optimization

This commit is contained in:
Tjakka5 2020-01-04 10:47:45 +01:00
parent 424f27ed8a
commit 451b88cdea
3 changed files with 11 additions and 4 deletions

View file

@ -199,7 +199,7 @@ print(positionComponent.x, positionComponent.y) -- 100, 50
```lua
-- Remove a Component
myEntity:remove(Concord.compoennts.positionComponent)
myEntity:remove(Concord.components.positionComponent)
```
```lua
@ -209,7 +209,7 @@ print(hasPositionComponent) -- false
```
```lua
-- Entity:give will override a Component if the Entity already had it
-- Entity:give will override a Component if the Entity already has it
-- Entity:ensure will only put the Component if the Entity does not already have it
Entity:ensure(Concord.components.positionComponents, 0, 0) -- Will give