|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <SkeletalModule.hpp>
Public Member Functions | |
| int | add (T value) |
| T * | find (int id) |
| bool | erase (int id) |
| template<class Pred> | |
| void | eraseIf (Pred pred) |
| void | clear () |
Integer handles to owned objects.
Ids are never reused within a run: a caller holding a stale handle gets null rather than somebody else's skeleton, which is the difference between a bug that reports itself and one that renders the wrong character.
Definition at line 221 of file SkeletalModule.hpp.
|
inline |
Definition at line 223 of file SkeletalModule.hpp.
|
inline |
Definition at line 245 of file SkeletalModule.hpp.
|
inline |
Definition at line 234 of file SkeletalModule.hpp.
|
inline |
Drop every entry matching pred — how a skeleton takes its instances with it, since they hold data it owns and must not outlive it.
Definition at line 239 of file SkeletalModule.hpp.
|
inline |
Definition at line 229 of file SkeletalModule.hpp.