コード例 #1
0
 public void Killed(ServerTowerModel hitSendingTower)
 {
     IsDead = true;
     hitSendingTower?.KilledMob(MobData);
 }
コード例 #2
0
 public double GetDistance(ServerTowerModel tower)
 {
     return(GetDistance(tower.X, tower.Y));
 }
コード例 #3
0
 public void RemoveTower(ServerTowerModel tower)
 {
     GetTileByCoords(tower.X, tower.Y).TowerId = null;
     UpdateMapData();
 }
コード例 #4
0
 public bool TowerInDistance(ServerTowerModel tower, int distance)
 {
     return(GetDistance(tower) <= distance);
 }
コード例 #5
0
 public void PlaceTower(ServerTowerModel tower)
 {
     GetTileByCoords(tower.X, tower.Y).TowerId = tower.TowerId;
     UpdateMapData();
 }