Game.h 420 B

1234567891011121314151617181920212223
  1. #ifndef GAMESERVER_H
  2. #define GAMESERVER_H
  3. #include "common/world/World.h"
  4. #include "server/entities/ServerPlayer.h"
  5. #include "utils/Clock.h"
  6. namespace Game {
  7. extern Clock ticksPerSecond;
  8. extern BlockRegistry blocks;
  9. void stop();
  10. bool isRunning();
  11. void testWorld();
  12. World& getTestWorld();
  13. void tick();
  14. void addPlayer(ServerPlayer& p);
  15. void removePlayer(ServerPlayer& p);
  16. }
  17. #endif