public void IncreaseFloor(int currentfloor, int towerid) { var tower = new DbTower(_db, towerid) { CurrentFloor = towerid }; tower.FlushAsync(); }
public void SetClearer(int id, string name) { var tower = new DbTower(_db, id) { Clearer = name }; tower.FlushAsync(); }
public bool TowerExist(int towerid) { var tower = new DbTower(_db, towerid); if (tower != null) { return(true); } return(false); }
public void CreateTower(int towerid, int maxfloor) { var tower = new DbTower(_db, towerid) { MaxFloor = maxfloor, CurrentFloor = 0, Clearer = "", }; tower.FlushAsync(); }