Game.h 379 B

12345678910111213141516171819202122
  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 World world;
  9. void stop();
  10. bool isRunning();
  11. void init();
  12. void tick();
  13. void addPlayer(ServerPlayer& p);
  14. void removePlayer(ServerPlayer& p);
  15. }
  16. #endif