Пример #1
0
 public Layer(Map map)
 {
     Map = map;
     Rows = map.Rows;
     Cols = map.Cols;
     Tiles = new Tile[Rows, Cols];
 }
Пример #2
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            Map = new Map(txtName.Text, (int) nudMapWidth.Value, (int) nudMapHeight.Value);

            for (var i = 0; i < 4; i++)
            {
                var layer = new Layer(Map);
                Map.AddLayer(layer);
            }

            DialogResult = DialogResult.OK;
        }