[AI] Template class for a generic collection, providing fundamental storage and comparison facilities...
MxU32 m_count
[AI] Number of elements currently stored in the collection.
~MxCollection() override
[AI] Virtual destructor for proper polymorphic destruction.
MxCollection()
[AI] Constructs an empty collection, initializing count and default element destructor.
virtual MxS8 Compare(T a, T b)
[AI] Compares two elements of the collection (default implementation returns zero; override in subcla...
static void Destroy(T obj)
[AI] Static no-op destroy function; suitable for types that do not need destruction.
void SetDestroy(void(*p_customDestructor)(T))
[AI] Assigns a custom destructor function to be used for elements of this collection.
void(* m_customDestructor)(T)
[AI] Function pointer to the custom element destructor used for cleanup of elements.
[AI] Base virtual class for all Mindscape engine (Mx) objects.