StaticInitializerOrder.cpp 451 B

12345678910111213141516171819
  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. int count_WorldUpdateType = 0;
  8. int count_EntityType = 0;
  9. #undef REGISTER
  10. #define REGISTER(c, typ) \
  11. const int c::ID = count_##typ++; \
  12. const c *c::INSTANCE = new c();
  13. #include "BasicBlocks.h"
  14. #include "OverworldDimension.h"
  15. #include "AddChunkUpdate.h"
  16. #include "Player.h"