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