コード例 #1
0
        protected override void SerializeImpl(IOutgoingMessageStream messageStream)
        {
            messageStream.WriteBool(PartialUpdate);

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

            messageStream.WriteInt64(InventoryId);
            messageStream.WriteInt16((short)InventoryType);
            Write(messageStream, InventoryContent);
        }
コード例 #2
0
 protected override void SerializeImpl(IOutgoingMessageStream messageStream)
 {
     messageStream.WriteEntityId(EntityId);
     messageStream.WriteBool(Success);
 }