StaticInitializerOrder.cpp 332 B

123456789101112131415
  1. #include "StaticRegistry.h"
  2. #include "BlockType.h"
  3. #include "ItemType.h"
  4. int count_DimensionGenerator = 0;
  5. int count_ItemType = 0;
  6. int count_BlockType = 0;
  7. #define REGISTER(c, typ) \
  8. const int c::ID = count_##typ++; \
  9. const c *c::INSTANCE = new c();
  10. #include "BasicBlocks.h"
  11. #include "OverworldDimension.h"