feat: add basic towers rendering
This commit is contained in:
@@ -334,9 +334,10 @@ void World::spawnMobAt(MobID id, MobType type, std::uint8_t level, PlayerID send
|
||||
m_Mobs.push_back(mob);
|
||||
}
|
||||
|
||||
void World::placeTowerAt(TowerType type, std::int32_t x, std::int32_t y, PlayerID builder) {
|
||||
TowerPtr tower = TowerFactory::createTower(type, x, y, builder);
|
||||
TowerPtr World::placeTowerAt(TowerID id, TowerType type, std::int32_t x, std::int32_t y, PlayerID builder) {
|
||||
TowerPtr tower = TowerFactory::createTower(type, id, x, y, builder);
|
||||
m_Towers.push_back(tower);
|
||||
return tower;
|
||||
}
|
||||
|
||||
void World::moveMobs(std::uint64_t delta) {
|
||||
|
||||
Reference in New Issue
Block a user