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); } }
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); }