public ClickMenu(Town town, Location location, Tile tile, Entity entity) { this.town = town; this.location = location; this.tile = tile; this.entity = entity; InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) { Tile tile = new Tile(location, TileType.Dirt); town.tiles.Add(tile); safelyClose(); }