Beispiel #1
0
 public static void Serialize(PlayerIdentity instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         obj.AddString(1, instance.PlayerIdentifier);
     }
     {
         obj.AddString(2, instance.Provider);
     }
     {
         obj.AddBytes(3, instance.Metadata);
     }
 }
Beispiel #2
0
            public static PlayerIdentity Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var instance = new PlayerIdentity();

                {
                    instance.PlayerIdentifier = obj.GetString(1);
                }
                {
                    instance.Provider = obj.GetString(2);
                }
                {
                    instance.Metadata = obj.GetBytes(3);
                }
                return(instance);
            }