Registries.h 486 B

123456789101112131415161718
  1. #pragma once
  2. #include "BlockType.h"
  3. #include "EntityType.h"
  4. #include "ItemType.h"
  5. #include "StaticRegistry.h"
  6. #include "WorldUpdate.h"
  7. #ifndef _REGISTRY
  8. # define _REGISTRY extern
  9. #endif
  10. #define STATIC_REGISTRY(Type) Type##Registry
  11. _REGISTRY StaticRegistry<WorldUpdateType> WorldUpdateTypeRegistry;
  12. _REGISTRY StaticRegistry<BlockType> BlockTypeRegistry;
  13. _REGISTRY StaticRegistry<ItemType> ItemTypeRegistry;
  14. _REGISTRY StaticRegistry<EntityType> EntityTypeRegistry;