コード例 #1
0
        public static void CharactersListMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            CharactersListMessage charactersListMessage = (CharactersListMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                charactersListMessage.Deserialize(reader);
            }

            account.CharacterBaseInformations = charactersListMessage.characters[0];

            //MainForm.ActualMainForm.ActualizeAccountInformations();

            if (!account.IsMITM)
            {
                CharacterSelectionMessage characterSelectionMessage = new CharacterSelectionMessage(account.CharacterBaseInformations.id);
                account.SocketManager.Send(characterSelectionMessage);
            }
        }
コード例 #2
0
        public static void CharactersListMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            CharactersListMessage charactersListMessage = (CharactersListMessage)message;

            //packetDatas = packetDatas.ToList().SkipWhile(a => a == 0).ToArray();

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                charactersListMessage.Deserialize(reader);
            }

            account.CharacterBaseInformations = charactersListMessage.Characters[0];

            //MainForm.ActualMainForm.ActualizeAccountInformations();

            if (!account.IsMITM)
            {
                CharacterSelectionMessage characterSelectionMessage = new CharacterSelectionMessage((ulong)account.CharacterBaseInformations.ObjectID);
                account.SocketManager.Send(characterSelectionMessage);
            }
        }