Пример #1
0
 public static void SendTitleEarned(Character character, CharacterTitleEntry titleEntry, bool lost)
 {
     using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_TITLE_EARNED, 4 + 4))
     {
         packet.WriteUInt((uint) titleEntry.BitIndex);
         packet.WriteUInt(lost ? 0 : 1);
         character.Send(packet);
     }
 }
Пример #2
0
        public override void Convert(byte[] rawData)
        {
            var characterTitleEntry = new CharacterTitleEntry();
            characterTitleEntry.TitleId = (TitleId)GetUInt32(rawData, 0);
            characterTitleEntry.Names = GetStrings(rawData, 2);
            characterTitleEntry.BitIndex = (TitleBitId)GetUInt32(rawData, 36);

            TitleMgr.CharacterTitleEntries[characterTitleEntry.TitleId] = characterTitleEntry;
        }
Пример #3
0
        public override void Convert(byte[] rawData)
        {
            CharacterTitleEntry characterTitleEntry = new CharacterTitleEntry()
            {
                TitleId  = (TitleId)DBCRecordConverter.GetUInt32(rawData, 0),
                Names    = this.GetStrings(rawData, 2),
                BitIndex = (TitleBitId)DBCRecordConverter.GetUInt32(rawData, 36)
            };

            TitleMgr.CharacterTitleEntries[characterTitleEntry.TitleId] = characterTitleEntry;
        }
Пример #4
0
        public override void Convert(byte[] rawData)
        {
            var characterTitleEntry = new CharacterTitleEntry();

            characterTitleEntry.TitleId  = (TitleId)GetUInt32(rawData, 0);
            characterTitleEntry.Names    = GetStrings(rawData, 2);
            characterTitleEntry.BitIndex = (TitleBitId)GetUInt32(rawData, 36);


            TitleMgr.CharacterTitleEntries[characterTitleEntry.TitleId] = characterTitleEntry;
        }