refactor: tower add event processing

This commit is contained in:
2021-12-04 13:44:34 +01:00
parent cf9633c061
commit 2da0bd9b79
8 changed files with 30 additions and 14 deletions

View File

@@ -112,9 +112,5 @@ void ClientGame::renderWorld() {
}
}
void ClientGame::HandlePacket(const protocol::WorldAddTowerPacket* packet) {
m_WorldRenderer.addTower(m_WorldClient.placeTowerAt(packet->getTowerID(), packet->getTowerType(), packet->getTowerX(), packet->getTowerY(), packet->getBuilder()));
}
} // namespace client
} // namespace td