public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, m_ID);
     Helper.WriteU32(s, m_recipientID);
     Helper.WriteU32(s, m_recipientType);
     Helper.WriteU32(s, m_publisherPID);
     Helper.WriteString(s, m_publisherName);
     Helper.WriteU64(s, m_publicationTime);
     Helper.WriteU64(s, m_displayTime);
     Helper.WriteU64(s, m_expirationTime);
     Helper.WriteString(s, m_title);
     Helper.WriteString(s, m_link);
 }
Exemple #2
0
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, m_idMyself);
     Helper.WriteU32(s, m_pidOwner);
     Helper.WriteU32(s, m_pidHost);
     Helper.WriteU16(s, m_uiMinParticipants);
     Helper.WriteU16(s, m_uiMaxParticipants);
     Helper.WriteU32(s, m_uiParticipationPolicy);
     Helper.WriteU32(s, m_uiPolicyArgument);
     Helper.WriteU32(s, m_uiFlags);
     Helper.WriteU32(s, m_uiState);
     Helper.WriteString(s, m_strDescription);
 }
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, PersonaID);
     Helper.WriteString(s, PersonaName);
     Helper.WriteU8(s, PersonaStatus);
     Helper.WriteU32(s, AvatarPortraitID);
     Helper.WriteU32(s, AvatarDecoratorID);
     Helper.WriteU32(s, AvatarBackgroundColor);
     Helper.WriteU8(s, CurrentCharacterID);
     Helper.WriteU8(s, CurrentCharacterLevel);
     Helper.WriteU32(s, m_PartyID);
     Helper.WriteString(s, m_InviterMessage);
 }
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, m_PlayerID);
     Helper.WriteString(s, m_Name);
     Helper.WriteU32(s, m_AvatarPortraitID);
     Helper.WriteU32(s, m_Level);
     Helper.WriteU32(s, m_Rank);
     Helper.WriteU32(s, m_RankedValue);
     Helper.WriteU32(s, (uint)m_StatisticsVector.Count);
     foreach (GR5_Statistic st in m_StatisticsVector)
     {
         st.toBuffer(s);
     }
 }
Exemple #5
0
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, mID);
     Helper.WriteString(s, mCriteria);
     Helper.WriteU32(s, mOasisName);
     Helper.WriteU32(s, mOasisDescription);
     Helper.WriteU32(s, mOasisRequirement);
     Helper.WriteU32(s, mOasisDebrief);
     Helper.WriteU8(s, mMinLevel);
     Helper.WriteU8(s, mMaxLevel);
     Helper.WriteU8(s, mMinParty);
     Helper.WriteU8(s, mCommandoRequired);
     Helper.WriteU8(s, mReconRequired);
     Helper.WriteU8(s, mSpecialistRequired);
     Helper.WriteU8(s, mFlags);
     Helper.WriteU32(s, mAssetId);
 }
Exemple #6
0
        public override byte[] ToBuffer()
        {
            MemoryStream result = new MemoryStream();

            Helper.WriteString(result, user);
            Helper.WriteString(result, className);
            MemoryStream m = new MemoryStream();

            Helper.WriteString(m, username);
            Helper.WriteString(m, onlineKey);
            Helper.WriteString(m, password);
            byte[] buff = m.ToArray();
            Helper.WriteU32(result, (uint)(buff.Length + 4));
            Helper.WriteU32(result, (uint)buff.Length);
            result.Write(buff, 0, buff.Length);
            return(result.ToArray());
        }
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, m_ItemID);
     Helper.WriteU8(s, m_ItemType);
     Helper.WriteString(s, m_ItemName);
     Helper.WriteU8(s, m_DurabilityType);
     Helper.WriteBool(s, m_IsInInventory);
     Helper.WriteBool(s, m_IsSellable);
     Helper.WriteBool(s, m_IsLootable);
     Helper.WriteBool(s, m_IsRewardable);
     Helper.WriteBool(s, m_IsUnlockable);
     Helper.WriteU32(s, m_MaxItemInSlot);
     Helper.WriteU32(s, m_GearScore);
     Helper.WriteFloat(s, m_IGCValue);
     Helper.WriteU32(s, m_OasisName);
     Helper.WriteU32(s, m_OasisDesc);
 }
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, m_ID);
     Helper.WriteU32(s, m_ModifierListID);
     Helper.WriteU32(s, m_OasisID);
     Helper.WriteString(s, m_Name);
     Helper.WriteU32(s, (uint)m_EquippableWeaponIDVector.Count);
     foreach (uint u in m_EquippableWeaponIDVector)
     {
         Helper.WriteU32(s, u);
     }
     Helper.WriteU32(s, (uint)m_DefaultSkillNodeIDVector.Count);
     foreach (uint u in m_DefaultSkillNodeIDVector)
     {
         Helper.WriteU32(s, u);
     }
     Helper.WriteU32(s, m_LoadoutID);
 }
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, unk1);
     Helper.WriteU32(s, unk2);
     Helper.WriteU32(s, unk3);
     Helper.WriteString(s, unk4);
     Helper.WriteU32(s, (uint)unk5.Count);
     foreach (uint u in unk5)
     {
         Helper.WriteU32(s, u);
     }
     Helper.WriteU32(s, (uint)unk6.Count);
     foreach (uint u in unk6)
     {
         Helper.WriteU32(s, u);
     }
     Helper.WriteU32(s, unk7);
 }
Exemple #10
0
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, m_ID);
     Helper.WriteU32(s, m_Type);
     Helper.WriteU32(s, m_AvailableStock);
     Helper.WriteU32(s, m_TimeStart);
     Helper.WriteU32(s, m_TimeExpired);
     Helper.WriteU32(s, m_BuyIGCCost);
     Helper.WriteU32(s, m_BuyGRCashCost);
     Helper.WriteU32(s, m_AssetKey);
     Helper.WriteString(s, m_Name);
     Helper.WriteU32(s, m_OasisName);
     Helper.WriteU32(s, (uint)m_ItemVector.Count);
     foreach (GR5_SKUItem i in m_ItemVector)
     {
         i.toBuffer(s);
     }
 }
 public void toBuffer(Stream s)
 {
     foreach (uint u in unk1)
     {
         Helper.WriteU32(s, u);
     }
     Helper.WriteString(s, unk2);
     foreach (uint u in unk3)
     {
         Helper.WriteU32(s, u);
     }
     s.Write(unk4, 0, 6);
     Helper.WriteU32(s, unk5);
     Helper.WriteU32(s, (uint)unk6.Count());
     foreach (uint u in unk6)
     {
         Helper.WriteU32(s, u);
     }
 }
        public override byte[] ToBuffer()
        {
            MemoryStream m = new MemoryStream();

            Helper.WriteString(m, unk1);
            Helper.WriteU32(m, (uint)unk2.Length);
            m.Write(unk2, 0, unk2.Length);
            Helper.WriteU32(m, (uint)members.Count);
            foreach (PartyMember mem in members)
            {
                mem.toBuffer(m);
            }
            Helper.WriteU32(m, (uint)invitees.Count);
            foreach (Invitee i in invitees)
            {
                i.toBuffer(m);
            }
            return(m.ToArray());
        }
Exemple #13
0
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, m_ID);
     Helper.WriteU32(s, m_CouponBatchID);
     Helper.WriteU32(s, m_TimeStart);
     Helper.WriteU32(s, m_TimeExpired);
     Helper.WriteU32(s, m_TargetType);
     Helper.WriteU32(s, m_TargetValue);
     Helper.WriteString(s, m_Tag);
     Helper.WriteU32(s, (uint)m_ConditionVector.Count);
     foreach (GR5_SKUModifierCondition c in m_ConditionVector)
     {
         c.toBuffer(s);
     }
     Helper.WriteU32(s, (uint)m_OutputVector.Count);
     foreach (GR5_SKUModifierOutput c in m_OutputVector)
     {
         c.toBuffer(s);
     }
 }
        public override byte[] ToBuffer()
        {
            MemoryStream m = new MemoryStream();

            Helper.WriteU32(m, PersonaID);
            Helper.WriteString(m, Name);
            Helper.WriteU32(m, PortraitID);
            Helper.WriteU32(m, DecoratorID);
            Helper.WriteU32(m, AvatarBackgroundColor);
            Helper.WriteU32(m, GRCash);
            Helper.WriteU32(m, IGC);
            Helper.WriteU32(m, AchievementPoints);
            Helper.WriteU8(m, LastUsedCharacterID);
            Helper.WriteU32(m, MaxInventorySlot);
            Helper.WriteU32(m, MaxScrapYardSlot);
            Helper.WriteU32(m, GhostRank);
            Helper.WriteU32(m, Flag);
            Helper.WriteU32(m, (uint)Characters.Count);
            foreach (GR5_Character c in Characters)
            {
                c.toBuffer(m);
            }
            return(m.ToArray());
        }
        public override byte[] ToBuffer()
        {
            MemoryStream m = new MemoryStream();

            Helper.WriteU32(m, PersonaID);
            Helper.WriteString(m, PlayerName);
            Helper.WriteU32(m, unk3);
            Helper.WriteU32(m, unk4);
            Helper.WriteU32(m, unk5);
            Helper.WriteU32(m, unk6);
            Helper.WriteU32(m, unk7);
            Helper.WriteU32(m, unk8);
            Helper.WriteU8(m, unk9);
            Helper.WriteU32(m, unk10);
            Helper.WriteU32(m, unk11);
            Helper.WriteU32(m, GhostRank);
            Helper.WriteU32(m, unk13);
            Helper.WriteU32(m, (uint)chars.Count);
            foreach (Character c in chars)
            {
                c.toBuffer(m);
            }
            return(m.ToArray());
        }
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, unk1);
     Helper.WriteU8(s, unk2);
     Helper.WriteString(s, unk3);
 }
 public void toBuffer(Stream s)
 {
     header.toBuffer(s);
     Helper.WriteString(s, m_body);
 }
Exemple #18
0
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, channel);
     Helper.WriteString(s, reason);
     Helper.WriteU32(s, expiry);
 }
 public void toBuffer(Stream s)
 {
     Helper.WriteU32(s, mId);
     Helper.WriteU8(s, mType);
     Helper.WriteString(s, mWord);
 }
Exemple #20
0
 public void toBuffer(Stream s)
 {
     Helper.WriteString(s, szTimeZone);
     Helper.WriteString(s, szDstTimeZone);
     Helper.WriteU32(s, i32Dst);
 }