File BlockTypeRegistry.hpp

Typedefs

typedef std::map<HashedString, SharedPtr<BlockLegacy>> BlockLookupMap
typedef entt::dense_map<HashType64, HashedString> BlockNameHashToHashedStringMap
class BlockTypeRegistry

Public Types

enum LookupByNameImplResolve

Values:

enumerator BlockLegacyResolve
enumerator BlockResolve

Public Static Functions

static inline std::set<std::string> *mKnownNamespaces()
static inline BlockLookupMap *mBlockLookupMap()
static inline BlockNameHashToHashedStringMap *mBlockNameHashToStringMap()
static inline const Block *getDefaultBlockState(const HashedString &name)
template<typename T, typename ...Args>
static inline WeakPtr<T> registerBlock(const std::string &blockName, Args&&... args)
static inline LookupByNameImplReturnType _lookupByNameImpl(const HashedString &name, int data, LookupByNameImplResolve resolve)
struct BlockComplexAliasBlockState

Public Members

HashedString stateName
int value
struct LookupByNameImplReturnType

Public Members

WeakPtr<BlockLegacy> blockLegacy
std::vector<BlockComplexAliasBlockState> states