Entity Arrays

Entity exclusive callbacks are useful for quickly programming specific behavior for every different entity in scene, but may be not as useful for handling multiple entities at the same time.

For that reason, sometimes it will be necessary to store entities in a quickly accessible array that could simplify management of multiple objects. In Ethanon Engine this can be done with the ETHEntityArray object. This object is very similar to the std::vector template on C++, matter of fact, it is an std::vector wrapper that provides the most important methods such as Insert (push_back), Size and the [] operator.

Functions like GetEntityArray function may build arrays containing all entities of certain name, or from certain buckets in scene.