Пример #1
0
        /// <summary>
        /// MessagePackのデータを使って初期化を行う
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="mapModelPack"></param>
        public MapModel(MapModelPack mapModelPack, StageModel parent)
        {
            Initialize(parent);
            SetProperties(mapModelPack);

            MapChipModel = new MapChipModel(this, mapModelPack.MapChipPack);
            ObjectChipModel = new ObjectChipModel(this, mapModelPack.ObjectChipPack);

            SetEvent();
            ChangeBackground();
        }
Пример #2
0
 /// <summary>
 /// MapModelPackからMapModelの値のセット
 /// </summary>
 /// <param name="mapModelPack"></param>
 private void SetProperties(MapModelPack mapModelPack)
 {
     this.ID = mapModelPack.ID;
     this.MapName = mapModelPack.MapName;
     this.Background = mapModelPack.Background;
     this.MapCellWidth = mapModelPack.Width;
     this.MapCellHeight = mapModelPack.Height;
     this.BgNo = mapModelPack.BgNo;
     this.BGMNo = mapModelPack.BGMNo;
     this.ScrollSpeed = mapModelPack.ScrollSpeed;
     this.ScrollAngle = mapModelPack.ScrollAngle;
     this.MapChipType = mapModelPack.MapChipType;
     this.TimeLimit = mapModelPack.TimeLimit;
 }