Class Serialization
Inheritance
Serialization
Namespace: Ludiq
Syntax
public static class Serialization
Fields
ConstructorWarning
Declaration
public const string ConstructorWarning = "This parameterless constructor is only made public for serialization. Use another constructor instead."
Field Value
Properties
isUnityDeserializing
Declaration
public static bool isUnityDeserializing { get; }
Property Value
Methods
AwaitDependencies(ISerializationDepender)
Declaration
public static void AwaitDependencies(ISerializationDepender depender)
Parameters
ContainsRealData(OdinSerializer.SerializationData)
Declaration
public static bool ContainsRealData(this OdinSerializer.SerializationData data)
Parameters
Type |
Name |
Description |
Ludiq.OdinSerializer.SerializationData |
data |
|
Returns
FullDeserialize(FullSerializationData, Boolean)
Declaration
public static object FullDeserialize(this FullSerializationData data, bool forceReflected = false)
Parameters
Returns
FullDeserializeInto(FullSerializationData, ref Object, Boolean)
Declaration
public static void FullDeserializeInto(this FullSerializationData data, ref object instance, bool forceReflected = false)
Parameters
FullSerialize(Object, Boolean)
Declaration
public static FullSerializationData FullSerialize(this object value, bool forceReflected = false)
Parameters
Returns
GetDebugString(FullSerializationData, String)
Declaration
public static string GetDebugString(this FullSerializationData data, string title = null)
Parameters
Returns
GetDebugString(OdinSerializer.SerializationData, String)
Declaration
public static string GetDebugString(this OdinSerializer.SerializationData data, string title = null)
Parameters
Type |
Name |
Description |
Ludiq.OdinSerializer.SerializationData |
data |
|
String |
title |
|
Returns
LogStuckDependers()
Declaration
public static void LogStuckDependers()
NotifyDependencyAvailable(ISerializationDependency)
Declaration
public static void NotifyDependencyAvailable(ISerializationDependency dependency)
Parameters
NotifyDependencyDeserialized(ISerializationDependency)
Declaration
public static void NotifyDependencyDeserialized(ISerializationDependency dependency)
Parameters
NotifyDependencyDeserializing(ISerializationDependency)
Declaration
public static void NotifyDependencyDeserializing(ISerializationDependency dependency)
Parameters
NotifyDependencyUnavailable(ISerializationDependency)
Declaration
public static void NotifyDependencyUnavailable(ISerializationDependency dependency)
Parameters
OdinDeserialize<T>(OdinSerializer.SerializationData)
Declaration
public static T OdinDeserialize<T>(this OdinSerializer.SerializationData data)
Parameters
Type |
Name |
Description |
Ludiq.OdinSerializer.SerializationData |
data |
|
Returns
Type Parameters
OdinDeserializeInto<T>(OdinSerializer.SerializationData, ref T)
Declaration
public static void OdinDeserializeInto<T>(this OdinSerializer.SerializationData data, ref T instance)
Parameters
Type |
Name |
Description |
Ludiq.OdinSerializer.SerializationData |
data |
|
T |
instance |
|
Type Parameters
Declaration
public static OdinSerializer.SerializationData OdinSerialize<T>(this T value, DataFormat format = null)
Parameters
Type |
Name |
Description |
T |
value |
|
DataFormat |
format |
|
Returns
Type |
Description |
Ludiq.OdinSerializer.SerializationData |
|
Type Parameters
Declaration
public static OdinSerializer.SerializationData OdinSerialize<T>(this T value, ref OdinSerializer.SerializationData data, DataFormat format = null)
Parameters
Type |
Name |
Description |
T |
value |
|
Ludiq.OdinSerializer.SerializationData |
data |
|
DataFormat |
format |
|
Returns
Type |
Description |
Ludiq.OdinSerializer.SerializationData |
|
Type Parameters
OnAfterDeserializeImplementation<T>(T, FullSerializationData, OdinSerializer.SerializationData, ref Boolean)
Declaration
public static void OnAfterDeserializeImplementation<T>(T uo, FullSerializationData fullData, OdinSerializer.SerializationData odinData, ref bool deserializationFailed)
where T : UnityEngine.Object, ILudiqRootObject
Parameters
Type Parameters
OnBeforeSerializeImplementation<T>(T, ref FullSerializationData, ref OdinSerializer.SerializationData, Boolean)
Declaration
public static void OnBeforeSerializeImplementation<T>(T uo, ref FullSerializationData fullData, ref OdinSerializer.SerializationData odinData, bool deserializationFailed)
where T : UnityEngine.Object, ILudiqRootObject
Parameters
Type Parameters
PrettyPrint(String)
Declaration
public static string PrettyPrint(string json)
Parameters
Type |
Name |
Description |
String |
json |
|
Returns
ShowData(String, FullSerializationData, OdinSerializer.SerializationData)
Declaration
public static void ShowData(string title, FullSerializationData fullData, OdinSerializer.SerializationData odinData)
Parameters
ToOdinData(Byte[])
Declaration
public static OdinSerializer.SerializationData ToOdinData(this byte[] bytes)
Parameters
Type |
Name |
Description |
Byte[] |
bytes |
|
Returns
Type |
Description |
Ludiq.OdinSerializer.SerializationData |
|