From 6234e4b741b1e875f38afbecf3aa71db40afa13a Mon Sep 17 00:00:00 2001 From: bakpakin Date: Tue, 8 Sep 2015 16:19:07 -0400 Subject: [PATCH] Document onAddToWorld and onRemoveFromWorld. --- tiny.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tiny.lua b/tiny.lua index fae5dbe..445edad 100644 --- a/tiny.lua +++ b/tiny.lua @@ -187,6 +187,10 @@ end -- from the System. -- * `function system:onModify(dt)` - Called when the System is modified by -- adding or removing Entities from the System. +-- * `function system:onAddToWorld(world)` - Called when the System is added +-- to the World, before any entities are added to the system. +-- * `function system:onRemoveFromWorld(world)` - Called when the System is +-- removed from the world, after all Entities are removed from the System. -- -- For Filters, it is convenient to use `tiny.requireAll` or `tiny.requireAny`, -- but one can write their own filters as well. Set the Filter of a System like