Sound Bakery  v0.1.0
Open-source audio middleware for games
|
Tracks object categories and types. More...
#include <object_tracker.h>
Public Member Functions | |
void | track_object (object *object) |
void | untrack_object (object *object, std::optional< rttr::type > typeOverride=std::nullopt) |
std::unordered_set< object * > | get_objects_of_category (const SB_OBJECT_CATEGORY &category) const |
std::unordered_set< object * > | get_objects_of_type (const rttr::type &type) const |
Tracks object categories and types.
The object_tracker allows for searching of object types and categories.
Objects are tracked with their memory address. This means objects in sound Bakery cannot be moved around in memory.