change WorldRenderer to class
This commit is contained in:
@@ -14,6 +14,8 @@ void ServerGame::tick(std::uint64_t delta){
|
||||
}
|
||||
|
||||
void ServerGame::startGame(){
|
||||
balanceTeams();
|
||||
|
||||
protocol::WorldBeginDataPacket headerMapData(m_World);
|
||||
m_Server->broadcastPacket(&headerMapData);
|
||||
|
||||
@@ -22,8 +24,6 @@ void ServerGame::startGame(){
|
||||
|
||||
m_GameState = game::GameState::Game;
|
||||
|
||||
balanceTeams();
|
||||
|
||||
m_ServerWorld.spawnMobs(game::MobType::Zombie, 1, 0, 12);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user