Exemplo n.º 1
0
        public virtual void OnClientRegisterPlayer(NetworkClient client, CUserData playerData)
        {
            var msgRegister = new CMsgRegisterPlayer();

            msgRegister.userData = playerData;
            client.Send((short)EMsgType.RegisterPlayer, msgRegister);
        }
Exemplo n.º 2
0
 protected override void Awake()
 {
     base.Awake();
     userData = new CUserData();
 }
Exemplo n.º 3
0
 public virtual void OnClientLoginComplete(CUserData responce)
 {
     CurrentUser = responce;
     CLog.Debug("OnClientLoginComplete " + CurrentUser.token);
     CNetworkManager.Instance.OnClientLoginComplete(CurrentUser);
 }
 public CMsgRegisterPlayer() : base()
 {
     this.userData = new CUserData();
 }
Exemplo n.º 5
0
 public virtual void OnClientLoginComplete(CUserData player)
 {
     this.networkAddress = SERVER_IP;
     this.networkPort    = SERVER_PORT;
     m_CurrentClient     = this.StartClient();
 }