123456789101112131415161718 |
- #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 "PlaceBlockUpdate.h"
- #include "BlockRemovedUpdate.h"
- #include "AddEntityUpdate.h"
- #include "EntityRemovedUpdate.h"
|