StaticInitializerOrder.cpp 489 B

1234567891011121314151617181920
  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 "NoBlock.h" // must be first
  14. #include "BasicBlocks.h"
  15. #include "OverworldDimension.h"
  16. #include "AddChunkUpdate.h"
  17. #include "Player.h"