Example #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();
        }
Example #2
0
 /// <summary>
 /// 選択範囲内に存在するMapChipPointのリストを返す
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public IEnumerable<MapChipPoint> GetMapChipList(MapChipModel model)
 {
     return GetSelectPointArray().Select(p => new MapChipPoint(p, model.Get(p))).ToArray();
 }