mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-22 07:56:52 -06:00
Add tiny.getSystemEntityCount(system).
This commit is contained in:
@@ -334,6 +334,11 @@ function tiny.system(table, attributes)
|
|||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Get number of Entities in the System.
|
||||||
|
function tiny.getSystemEntityCount(system)
|
||||||
|
return #(system.entities)
|
||||||
|
end
|
||||||
|
|
||||||
--- World functions.
|
--- World functions.
|
||||||
-- A World is a container that manages Entities and Systems. Typically, a
|
-- A World is a container that manages Entities and Systems. Typically, a
|
||||||
-- program uses one World at a time.
|
-- program uses one World at a time.
|
||||||
|
|||||||
Reference in New Issue
Block a user