Example #1
0
        public override void Serialize(IUnmanagedMemoryWriter writer)
        {
            base.Serialize(writer);
            writer.WriteInt16((short)Result);
            writer.WriteUInt16((ushort)Items.Count);

            foreach (var item in Items)
            {
                writer.WriteItem(item);
            }
        }
 public override void Serialize(IUnmanagedMemoryWriter writer)
 {
     base.Serialize(writer);
     writer.WriteBoolean(Win);
     writer.WriteByte(Level);
     writer.WriteInt32(Experience);
     writer.WriteInt32(EllapsedSeconds);
     writer.WriteByte((byte)ItemReward.Count());
     foreach (var item in ItemReward)
     {
         writer.WriteItem(item);
     }
 }
Example #3
0
 public static IUnmanagedMemoryWriter Write(this IUnmanagedMemoryWriter writer, Item item)
 {
     return(writer.WriteItem(item));
 }