Add tiny.getSystemEntityCount(system).

This commit is contained in:
bakpakin
2015-06-16 22:51:23 -04:00
parent c408267932
commit 2621bd16a3
+5
View File
@@ -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.