Module pool
Pool
Functions
Pool.new (name, filter) | Creates a new Pool |
Pool:eligible (e) | Checks if an Entity is eligible for the Pool. |
Functions
- Pool.new (name, filter)
-
Creates a new Pool
Parameters:
- name Identifier for the Pool.
- filter Table containing the required Components
Returns:
-
The new Pool
- Pool:eligible (e)
-
Checks if an Entity is eligible for the Pool.
Parameters:
- e The Entity to check
Returns:
-
True if the entity is eligible, false otherwise