private void HandleUserLogin(GSPacketIn pkg) { int num = pkg.ReadInt(); if (LoginMgr.TryLoginPlayer(num, this)) { this.SendAllowUserLogin(num, true); } else { this.SendAllowUserLogin(num, false); } }
/// <summary> /// 用户准备登陆 /// </summary> /// <param name="pkg"></param> private void HandleUserLogin(GSPacketIn pkg) { int playerid = pkg.ReadInt(); if (LoginMgr.TryLoginPlayer(playerid, this)) { SendAllowUserLogin(playerid, true); } else { SendAllowUserLogin(playerid, false); } }