コード例 #1
0
            public void Write(GamePacketWriter writer)
            {
                writer.Write(Id);
                writer.Write(DisplayFlags, 32u);
                writer.WriteStringWide(Name);
                writer.WriteStringWide(Description);
                writer.Write(DisplayInfoOverride, 14u);

                writer.Write(Offers.Count);
                Offers.ForEach(e => e.Write(writer));

                writer.Write(Categories.Count);
                foreach (Category category in Categories)
                {
                    writer.Write(category.Id);
                }
                foreach (Category category in Categories)
                {
                    writer.Write(category.Index);
                }
            }
コード例 #2
0
 public void DisableShowingQuantity()
 {
     Offers.ForEach(x => x.ShowQuantity = false);
 }