Registries.h 399 B

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