public BBPosterAppearance(int body, int hue, BBPAItem[] items) { this.m_Body = body; this.m_Hue = hue; this.m_Items = items; }
private static void BulletinBoard_SetBody(PacketReader pvSrc) { Item board = World.FindItem(pvSrc.ReadInt32()); if (board != null) { Item item2 = World.WantItem(pvSrc.ReadInt32()); if (item2 != null) { int serial = pvSrc.ReadInt32(); Item thread = null; if (serial >= 0x40000000) { thread = World.WantItem(serial); } string poster = BulletinBoard_ReadString(pvSrc); string subject = BulletinBoard_ReadString(pvSrc); string time = BulletinBoard_ReadString(pvSrc); item2.BulletinHeader = new BBMessageHeader(board, thread, poster, subject, time); int body = pvSrc.ReadUInt16(); int hue = pvSrc.ReadUInt16(); BBPAItem[] items = new BBPAItem[pvSrc.ReadByte()]; for (int i = 0; i < items.Length; i++) { items[i].ItemID = pvSrc.ReadUInt16(); items[i].Hue = pvSrc.ReadUInt16(); } string[] lines = new string[pvSrc.ReadByte()]; for (int j = 0; j < lines.Length; j++) { lines[j] = BulletinBoard_ReadString(pvSrc); } item2.BulletinBody = new BBMessageBody(new BBPosterAppearance(body, hue, items), lines); } } }