public int HandlePacket(ClientBase client, GamePacket packet) { int clientID = packet.ReadInt(); LoginInfo info = new LoginInfo(); info.PlayerID = packet.PlayerID; GamePlayer player = new GamePlayer(info, client as GameClient); player.ClientID = clientID; player.Logined(); GameGlobal.PlayerMgr.Add(player.PlayerID, player); GameGlobal.CheckMaxClientCount(); return(0); }