public MnfPlayer LBS_Select(int i) { MnfPlayer mp = null; if (i < 0) { return(mp); } mnfServer = new MnfServer(Servers[i]); Console.WriteLine("Selected server " + mnfServer.JmenoServeru); ServersSelected = i; if (i > -1) { mp = new MnfPlayer() { Avatar = mnfAvatar, Server = mnfServer, Uzivatel = mnfUzivatel }; } return(mp); }
private void MnfLogger_NewUser(object sender, MnfPlayer e) { mnfGame.Close(); mnfGame.Init(e); }
private void OnNewUser(MnfPlayer mp) { NewUser?.Invoke(this, mp); }