예제 #1
0
 public HChatlineData(HMessage packet)
 {
     Timestamp     = packet.ReadUTF8();
     Id            = packet.ReadInt32();
     Username      = packet.ReadUTF8();
     Message       = packet.ReadUTF8();
     IsHighlighted = packet.ReadBoolean();
 }
예제 #2
0
        public static List <HWallItem> BobbaParser(HMessage packet)
        {
            int ownersCount = packet.ReadInt32();

            for (int i = 0; i < ownersCount; i++)
            {
                packet.ReadInt32();
                packet.ReadUTF8();
            }

            var wallItems = new HWallItem[packet.ReadInt32()];

            for (int i = 0; i < wallItems.Length; i++)
            {
                wallItems[i] = new HWallItem(packet);
            }
            return(wallItems.ToList());
        }
예제 #3
0
        public HCatalogNode(HMessage packet)
        {
            Visible = packet.ReadBoolean();

            Icon         = packet.ReadInt32();
            PageId       = packet.ReadInt32();
            PageName     = packet.ReadUTF8();
            Localization = packet.ReadUTF8();

            OfferIds = new int[packet.ReadInt32()];
            for (int i = 0; i < OfferIds.Length; i++)
            {
                OfferIds[i] = packet.ReadInt32();
            }

            Children = new HCatalogNode[packet.ReadInt32()];
            for (int i = 0; i < Children.Length; i++)
            {
                Children[i] = new HCatalogNode(packet);
            }
        }