static void Main(string[] args) { try { Console.Title = "Mustank Console"; Console.WriteLine("Client started..."); Map map = new Map(); Gui gui = new Gui(map); Application.Run(gui); } catch (Exception ex) { Console.WriteLine(ex.Message); Console.ReadLine(); } }
//set a pointer to the map public void setMap(Map map) { this.map = map; }
public Gui(Map map) { InitializeComponent(); sc = new BasicCommandSender(); this.map = map; }