mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06:00
Remove systemData from luadoc.
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
local tiny = require "tiny"
|
local tiny = require "tiny"
|
||||||
|
print("tiny version: " .. tiny._VERSION)
|
||||||
-- Taken from answer at http://stackoverflow.com/questions/640642/how-do-you-copy-a-lua-table-by-value
|
-- Taken from answer at http://stackoverflow.com/questions/640642/how-do-you-copy-a-lua-table-by-value
|
||||||
local function deep_copy(o, seen)
|
local function deep_copy(o, seen)
|
||||||
seen = seen or {}
|
seen = seen or {}
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ end
|
|||||||
-- `function system:filter(entity)` - returns a boolean,
|
-- `function system:filter(entity)` - returns a boolean,
|
||||||
-- `function system:onAdd(entity)` - returns nil,
|
-- `function system:onAdd(entity)` - returns nil,
|
||||||
-- `function system:onRemove(entity)` - returns nil,
|
-- `function system:onRemove(entity)` - returns nil,
|
||||||
-- `function system:onModify(systemData, dt)` - returns nil.
|
-- `function system:onModify(dt)` - returns nil.
|
||||||
-- For Filters, it is conveient to use `tiny.requireAll` or `tiny.requireOne`,
|
-- For Filters, it is conveient to use `tiny.requireAll` or `tiny.requireOne`,
|
||||||
-- but one can write their own filters as well.
|
-- but one can write their own filters as well.
|
||||||
-- @param table A table to be used as a System, or `nil` to create a new System.
|
-- @param table A table to be used as a System, or `nil` to create a new System.
|
||||||
@@ -158,7 +158,7 @@ end
|
|||||||
-- `function system:postProcess(entities, dt)` - returns nil,
|
-- `function system:postProcess(entities, dt)` - returns nil,
|
||||||
-- `function system:onAdd(entity)` - returns nil,
|
-- `function system:onAdd(entity)` - returns nil,
|
||||||
-- `function system:onRemove(entity)` - returns nil,
|
-- `function system:onRemove(entity)` - returns nil,
|
||||||
-- `function system:onModify(systemData, dt)` - returns nil.
|
-- `function system:onModify(dt)` - returns nil.
|
||||||
-- For Filters, it is conveient to use `tiny.requireAll` or `tiny.requireOne`,
|
-- For Filters, it is conveient to use `tiny.requireAll` or `tiny.requireOne`,
|
||||||
-- but one can write their own filters as well.
|
-- but one can write their own filters as well.
|
||||||
-- @param table A table to be used as a System, or `nil` to create a new
|
-- @param table A table to be used as a System, or `nil` to create a new
|
||||||
|
|||||||
Reference in New Issue
Block a user