Lodestone.Conversion
Loading...
Searching...
No Matches
Registries.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 2/14/26 using zPc-i2.
3//
4#ifndef LODESTONE_REGISTRIES_H
5#define LODESTONE_REGISTRIES_H
12
13//https://groups.google.com/g/android-ndk/c/xr_h7ediIhY
14#define LODESTONE_CREATE_REGISTRY_ALIAS(name, type...) \
15 extern template class type; \
16 using name = type
17
18#define LODESTONE_IMPLEMENT_REGISTRY_ALIAS(type...) \
19 template class type;
20
21#define LODESTONE_IMPLEMENT_REGISTRY_GET_INSTANCE() \
22 template <const common::registry::Identifier *Identifier, typename Type, typename Stored> \
23 LODESTONE_API SingletonRegistry<Identifier, Type, Stored> &SingletonRegistry<Identifier, Type, Stored>::getInstance() { \
24 static SingletonRegistry s_instance; \
25 return s_instance; \
26 }
27
33}
34
35#endif // LODESTONE_REGISTRIES_H
#define LODESTONE_CREATE_REGISTRY_ALIAS(name, type...)
Definition Registries.h:14
Definition Registries.cpp:14
SingletonRegistry<&identifiers::LEVEL_IO_REGISTRY, const io::interfaces::ILevelIO > LevelIORegistry
Definition Registries.h:30
SingletonRegistry<&identifiers::CHUNK_IO_REGISTRY, const io::interfaces::IChunkIO > ChunkIORegistry
Definition Registries.h:31
SingletonRegistry<&identifiers::WORLD_IO_REGISTRY, const io::interfaces::IWorldIO > WorldIORegistry
Definition Registries.h:32
SingletonRegistry<&identifiers::PLAYER_IO_REGISTRY, const io::interfaces::IPlayerIO > PlayerIORegistry
Definition Registries.h:29