Esempio n. 1
0
        public void IncreaseFloor(int currentfloor, int towerid)
        {
            var tower = new DbTower(_db, towerid)
            {
                CurrentFloor = towerid
            };

            tower.FlushAsync();
        }
Esempio n. 2
0
        public void SetClearer(int id, string name)
        {
            var tower = new DbTower(_db, id)
            {
                Clearer = name
            };

            tower.FlushAsync();
        }
Esempio n. 3
0
        public bool TowerExist(int towerid)
        {
            var tower = new DbTower(_db, towerid);

            if (tower != null)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 4
0
        public void CreateTower(int towerid, int maxfloor)
        {
            var tower = new DbTower(_db, towerid)
            {
                MaxFloor     = maxfloor,
                CurrentFloor = 0,
                Clearer      = "",
            };

            tower.FlushAsync();
        }