refactor: create gui widget classes
This commit is contained in:
@@ -112,11 +112,6 @@ void ClientGame::renderWorld() {
|
||||
}
|
||||
}
|
||||
|
||||
void ClientGame::PlaceTower(game::TowerType type, const glm::vec2& position) {
|
||||
protocol::PlaceTowerPacket packet(position.x, position.y, type);
|
||||
m_Client->getConnexion().sendPacket(&packet);
|
||||
}
|
||||
|
||||
void ClientGame::HandlePacket(const protocol::WorldAddTowerPacket* packet) {
|
||||
m_WorldRenderer.addTower(m_WorldClient.placeTowerAt(packet->getTowerID(), packet->getTowerType(), packet->getTowerX(), packet->getTowerY(), packet->getBuilder()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user