StaticInitializerOrder.h 487 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "StaticRegistry.h"
  3. #include "BlockType.h"
  4. #include "ItemType.h"
  5. int count_DimensionGenerator = 0;
  6. int count_ItemType = 0;
  7. int count_BlockType = 0;
  8. int count_WorldUpdateType = 0;
  9. int count_EntityType = 0;
  10. #undef REGISTER
  11. #define REGISTER(c, typ) \
  12. const int c::ID = count_##typ++; \
  13. const c *c::INSTANCE = new c();
  14. #include "BasicBlocks.h"
  15. //#include "OverworldDimension.h"
  16. #include "AddChunkUpdate.h"
  17. //#include "Player.h"