Example #1
0
 public TileUnitModel(TileUnit tileUnit)
 {
     TileUnit = tileUnit;
     Elements = tileUnit.Tiles.Select((o, i) => new TileUnitElementModel(tileUnit.Tiles, i)).ToArray();
     foreach (var item in Elements)
         item.Updated += Item_Updated;
     Draw();
 }
 public AddTileUnitViewModel()
 {
     TileUnit = new TileUnit()
     {
         Category = "新地形",
         Size = new TileUnitSize { XLength = 1, ZLength = 1 }
     };
 }
        //public TileSetContext TileSetContext { get; private set; }

        public NonPickAnyTileUnitEditViewModel(TileUnit tileUnit)
        {
            TileUnit = tileUnit;
        }