Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void MnfLogger_NewUser(object sender, MnfPlayer e)
 {
     mnfGame.Close();
     mnfGame.Init(e);
 }
Esempio n. 3
0
 private void OnNewUser(MnfPlayer mp)
 {
     NewUser?.Invoke(this, mp);
 }