コード例 #1
0
        public void OnAccountLogin(CM_ACCOUNT_LOGIN p)
        {
            Logger.Log.Info(string.Format(this + ":Player:AccountID {0} is trying to login", p.AccountID));
            SM_ACCOUNT_LOGIN_RESULT p1 = new SM_ACCOUNT_LOGIN_RESULT()
            {
                SessionID = p.SessionID,
                Result    = AccountManager.Instance.AccountLogin(p.AccountID)
            };

            Network.SendPacket(p1);
        }
コード例 #2
0
        public void AccountLogin(uint accountID, T client)
        {
            long session = Global.PacketSession;

            packetSessions[session] = client;

            CM_ACCOUNT_LOGIN p = new CM_ACCOUNT_LOGIN()
            {
                SessionID = session,
                AccountID = accountID
            };

            Network.SendPacket(p);
        }