aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Igne <git@federicoigne.com>2023-03-05 21:27:18 +0000
committerFederico Igne <git@federicoigne.com>2023-03-05 21:27:18 +0000
commit89f5f6a1c5652205d97c3a47c0aa75f1b67114fb (patch)
tree48066519e56b09306508028abad41639c166b70d
parent5ab1e5c0bbed7d0958b4ba211e3085e97bb91ffd (diff)
downloadraccoon-89f5f6a1c5652205d97c3a47c0aa75f1b67114fb.tar.gz
raccoon-89f5f6a1c5652205d97c3a47c0aa75f1b67114fb.zip
docs: add docs on component/entity removal
-rw-r--r--raccoon.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/raccoon.lua b/raccoon.lua
index c0fec2f..df57514 100644
--- a/raccoon.lua
+++ b/raccoon.lua
@@ -191,7 +191,13 @@ function System:init(...)
191 --- Run the system. 191 --- Run the system.
192 -- @param entities array of entities. 192 -- @param entities array of entities.
193 -- 193 --
194 -- @note `system:exec(entity)` needs to be defined for a specific system. 194 -- @note a function `system:exec(entity)` needs to be defined for a
195 -- specific system. it can return a boolean guard `rm` and a list of
196 -- components `cmps`
197 --
198 -- rm \ cmps nil { ... }
199 -- true remove entity after processing remove provided components after processing
200 -- false do nothing after processing do nothing after processing
195 -- 201 --
196 -- @usage 202 -- @usage
197 -- To run an instance `s` of a system `S` 203 -- To run an instance `s` of a system `S`