Ejemplo n.º 1
0
 public static object DeserializeMigration(ref OdinSerializedData odinSerializerData, ref string fullSerializerData, ref List <Object> fullSerializerReferences, System.Type fullSerializerType = null)
 {
     if (string.IsNullOrEmpty(fullSerializerData))
     {
         return(Deserialize(odinSerializerData));
     }
     else
     {
         object result = JsonHelper.Deserialize(fullSerializerData, fullSerializerType, fullSerializerReferences);
         odinSerializerData = SerializeValue(result);
         fullSerializerData = string.Empty;
         fullSerializerReferences?.Clear();
         return(result);
     }
 }
Ejemplo n.º 2
0
 public void CopyFrom(OdinSerializedData serializedData)
 {
     data           = serializedData.data;
     references     = serializedData.references;
     serializedType = serializedData.serializedType;
 }