示例#1
0
 protected override void SerializeImpl(IOutgoingMessageStream messageStream)
 {
     messageStream.WriteInt64(SourceInventoryId);
     messageStream.WriteByte(SourceSlot);
     messageStream.WriteInt64(TargetInventoryId);
     messageStream.WriteByte(TargetSlot);
 }
        protected override void SerializeImpl(IOutgoingMessageStream messageStream)
        {
            messageStream.WriteBool(PartialUpdate);

            if (!PartialUpdate)
            {
                messageStream.WriteByte(InventorySize);
            }

            messageStream.WriteInt64(InventoryId);
            messageStream.WriteInt16((short)InventoryType);
            Write(messageStream, InventoryContent);
        }
 protected override void SerializeImpl(IOutgoingMessageStream messageStream)
 {
     messageStream.WriteInt64(InventoryId);
 }