OpenTTD Source 20250312-master-gcdcc6b491d
|
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle, Town, and other indexed items. More...
#include "enum_type.hpp"
Go to the source code of this file.
Typedefs | |
using | PoolTypes = EnumBitSet< PoolType, uint8_t > |
typedef std::vector< struct PoolBase * > | PoolVector |
Vector of pointers to PoolBase. | |
Enumerations | |
enum class | PoolType : uint8_t { Normal , NetworkClient , NetworkAdmin , Data } |
Various types of a pool. More... | |
Functions | |
template<typename T > requires std::is_base_of_v<PoolIDBase, T> | |
constexpr auto | operator+ (const std::integral auto &val, const T &pool_id) |
template<typename Te , typename Tp > requires std::is_enum_v<Te> && std::is_base_of_v<PoolIDBase, Tp> | |
constexpr auto | operator+ (const Te &val, const Tp &pool_id) |
Variables | |
static constexpr PoolTypes | PT_ALL = {PoolType::Normal, PoolType::NetworkClient, PoolType::NetworkAdmin, PoolType::Data} |
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle, Town, and other indexed items.
Definition in file pool_type.hpp.
using PoolTypes = EnumBitSet<PoolType, uint8_t> |
Definition at line 22 of file pool_type.hpp.
typedef std::vector<struct PoolBase *> PoolVector |
Vector of pointers to PoolBase.
Definition at line 25 of file pool_type.hpp.
|
strong |
Various types of a pool.
Enumerator | |
---|---|
Normal | Normal pool containing game objects. |
NetworkClient | Network client pools. |
NetworkAdmin | Network admin pool. |
Data | NewGRF or other data, that is not reset together with normal pools. |
Definition at line 16 of file pool_type.hpp.
|
constexpr |
Definition at line 78 of file pool_type.hpp.
|
constexpr |
Definition at line 80 of file pool_type.hpp.
|
staticconstexpr |
Definition at line 23 of file pool_type.hpp.