Registries.h 482 B

123456789101112131415161718
  1. #pragma once
  2. #include "StaticRegistry.h"
  3. #include "WorldUpdate.h"
  4. #include "BlockType.h"
  5. #include "ItemType.h"
  6. #include "EntityType.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;