Ejemplo n.º 1
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, MobileId);
     writer.WriteS32(1, X);
     writer.WriteS32(2, Y);
     writer.WriteBoolean(3, IsStartOfGame);
 }
Ejemplo n.º 2
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, MobileId);
      writer.WriteS32(1, X);
      writer.WriteS32(2, Y);
      writer.WriteBoolean(3, IsStartOfGame);
 }
Ejemplo n.º 3
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteU32(0, kVersion);
     writer.WriteString(1, SourceDirectory);
     writer.WriteString(2, DestinationDirectory);
     writer.WriteS32(3, ThumbnailsToGenerate);
 }
Ejemplo n.º 4
0
            public void Serialize(IPofWriter writer)
            {
                int i = 0;

                writer.WriteObject(i++, key);
                writer.WriteS32(i++, level);
                writer.WriteCollection(i++, friends);
            }
Ejemplo n.º 5
0
            public void Serialize(IPofWriter writer)
            {
                int i = 0;

                writer.WriteObject(i++, key);
                writer.WriteS32(i++, level);
                writer.WriteArray(i++, friends.ToArray());
            }
 public void Serialize(IPofWriter writer) {
    writer.WriteS32(0, packetId);
    writer.WriteFloat(1, leftX);
    writer.WriteFloat(2, leftY);
    writer.WriteFloat(3, rightX);
    writer.WriteFloat(4, rightY);
    writer.WriteFloat(5, leftTrigger);
    writer.WriteFloat(6, rightTrigger);
    writer.WriteCollection(7, buttons);
 }
Ejemplo n.º 7
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, packetId);
     writer.WriteFloat(1, leftX);
     writer.WriteFloat(2, leftY);
     writer.WriteFloat(3, rightX);
     writer.WriteFloat(4, rightY);
     writer.WriteFloat(5, leftTrigger);
     writer.WriteFloat(6, rightTrigger);
     writer.WriteCollection(7, buttons);
 }
Ejemplo n.º 8
0
            public void Serialize(IPofWriter writer)
            {
                writer.WriteBoolean(0, isPolymorphic);
                writer.WriteS32(1, elements.Length);

                var context    = writer.Context;
                var serializer = new PofSerializer(context);

                using (var elementStream = new MemoryStream()) {
                    using (var elementStreamWriter = new BinaryWriter(elementStream, Encoding.UTF8, true)) {
                        var serializationFlags = isPolymorphic ? SerializationFlags.None : SerializationFlags.Typeless;
                        foreach (var element in elements)
                        {
                            serializer.Serialize(elementStreamWriter, element, serializationFlags);
                        }
                    }
                    writer.WriteBytes(2, elementStream.ToArray());
                }
            }
Ejemplo n.º 9
0
            public void Serialize(IPofWriter writer)
            {
                writer.WriteBoolean(0, keysPolymorphic);
                writer.WriteBoolean(1, valuesPolymorphic);
                writer.WriteS32(2, items.Count);

                var context    = writer.Context;
                var serializer = new PofSerializer(context);

                using (var elementStream = new MemoryStream()) {
                    using (var elementStreamWriter = new BinaryWriter(elementStream, Encoding.UTF8, true)) {
                        var keySerializationFlags   = keysPolymorphic ? SerializationFlags.None : SerializationFlags.Typeless;
                        var valueSerializationFlags = valuesPolymorphic ? SerializationFlags.None : SerializationFlags.Typeless;
                        foreach (var kvp in items)
                        {
                            serializer.Serialize(elementStreamWriter, kvp.Key, keySerializationFlags);
                            serializer.Serialize(elementStreamWriter, kvp.Value, valueSerializationFlags);
                        }
                    }
                    writer.WriteBytes(3, elementStream.ToArray());
                }
            }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, 0x12345678);
     writer.WriteCollection(1, value, true);
 }
 public void Serialize(IPofWriter writer) {
    writer.WriteS32(0, kVersion);
    writer.WriteS32(1, ServicePort);
 }
Ejemplo n.º 12
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, transactionId);
     writer.WriteBoolean(1, okay);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, 0x12345678);
     writer.WriteObject(1, value);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, InjectionAttempts);
     writer.WriteS32(1, InjectionAttemptDelay);
 }
 public void Serialize(IPofWriter writer) {
    writer.WriteU32(0, kVersion);
    writer.WriteString(1, SourceDirectory);
    writer.WriteString(2, DestinationDirectory);
    writer.WriteS32(3, ThumbnailsToGenerate);
 }
Ejemplo n.º 16
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, kVersion);
     writer.WriteString(1, SelectedThumbnailPath);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, kVersion);
     writer.WriteU32(1, category.Value);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, value);
 }
Ejemplo n.º 19
0
 public void Serialize(IPofWriter writer)
 {
     writer.AssignSlot(0, Buffer);
     writer.WriteS32(1, Offset);
     writer.WriteS32(2, Length);
 }
Ejemplo n.º 20
0
 protected override void Serialize(IPofWriter writer, int baseSlot) {
    writer.WriteCollection(baseSlot + 0, Blocks);
    writer.WriteS32(baseSlot + 1, ServicePort);
 }
Ejemplo n.º 21
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, transactionId);
     writer.WriteObject(1, processor);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteString(0, name);
     writer.WriteS32(1, propertiesRevision);
     writer.AssignSlot(2, propertiesData, propertiesDataOffset, propertiesDataLength);
 }
Ejemplo n.º 23
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, transactionId);
 }
Ejemplo n.º 24
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, kVersion);
     writer.WriteObject(1, resolvedPath);
     writer.WriteU32(2, (uint)target);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, TargetProcessId);
     writer.WriteCollection(1, Components, true);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, kVersion);
      writer.WriteU32(1, category.Value);
 }
 public void Serialize(IPofWriter writer) {
    writer.WriteS32(0, InjectionAttempts);
    writer.WriteS32(1, InjectionAttemptDelay);
 }
Ejemplo n.º 28
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, kVersion);
      writer.WriteBoolean(1, IsEnabled);
 }
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, kVersion);
      writer.WriteString(1, SelectedThumbnailPath);
 }
Ejemplo n.º 30
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS32(0, kVersion);
     writer.WriteBoolean(1, IsEnabled);
 }
Ejemplo n.º 31
0
 public void Serialize(IPofWriter writer)
 {
     writer.WriteS64(0, accountId);
     writer.WriteS32(1, (int)errorCodeFlags);
 }