Game.h 518 B

12345678910111213141516171819202122232425
  1. #ifndef GAME_H
  2. #define GAME_H
  3. #include "client/input/Controller.h"
  4. #include "common/block/BlockRegistry.h"
  5. #include "common/entities/Entity.h"
  6. #include "common/network/toclient/EntityUpdatePacket.h"
  7. #include "common/world/World.h"
  8. namespace Game {
  9. extern BlockRegistry blockRegistry;
  10. extern World world;
  11. extern Controller controller;
  12. extern Entity player;
  13. bool init();
  14. void tick();
  15. void renderWorld();
  16. void renderOverlay();
  17. void onEntityUpdate(EntityUpdatePacket& p);
  18. }
  19. #endif