13#include "../safeguards.h"
22 pools->erase(std::ranges::find(*pools,
this));
23 if (pools->empty())
delete pools;
33 if (pt.
Test(pool->type)) pool->CleanPool();
constexpr bool Test(Tenum value) const
Test if the enum value is set.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
std::vector< struct PoolBase * > PoolVector
Vector of pointers to PoolBase.
Base class for base of all pools.
static PoolVector * GetPools()
Function used to access the vector of all pools.
static void Clean(PoolTypes)
Clean all pools of given type.
virtual ~PoolBase()
Destructor removes this object from the pool vector and deletes the vector itself if this was the las...