12345678910111213141516171819 |
- #define _REGISTRY
- #include "Registries.h"
- int count_WorldUpdateType = 0;
- #undef REGISTER
- #define REGISTER(c, typ) \
- const int c::ID = count_##typ++; \
- const c *c::INSTANCE = new c();
- // order of includes determines the ids
- // world updates
- #include "AddChunkUpdate.h"
- #include "PlaceBlockUpdate.h"
- #include "BlockRemovedUpdate.h"
- #include "AddEntityUpdate.h"
- #include "EntityRemovedUpdate.h"
|