feat: add tower ticks

This commit is contained in:
2021-09-19 18:15:36 +02:00
parent f6ef238984
commit 3bc58b12a6
2 changed files with 5 additions and 0 deletions

View File

@@ -321,6 +321,9 @@ bool World::saveMap(const std::string& fileName) const {
void World::tick(std::uint64_t delta) {
moveMobs(delta);
for(Tower& tower : m_Towers){
tower.tick(delta);
}
}
void World::spawnMobAt(MobID id, MobType type, std::uint8_t level, PlayerID sender, float x, float y, Direction dir) {