コード例 #1
0
        public void IncreaseFloor(int currentfloor, int towerid)
        {
            var tower = new DbTower(_db, towerid)
            {
                CurrentFloor = towerid
            };

            tower.FlushAsync();
        }
コード例 #2
0
        public void SetClearer(int id, string name)
        {
            var tower = new DbTower(_db, id)
            {
                Clearer = name
            };

            tower.FlushAsync();
        }
コード例 #3
0
        public void CreateTower(int towerid, int maxfloor)
        {
            var tower = new DbTower(_db, towerid)
            {
                MaxFloor     = maxfloor,
                CurrentFloor = 0,
                Clearer      = "",
            };

            tower.FlushAsync();
        }