Add this interface to objects that are included in proxy serialization. More...
Public Member Functions | |
void | OnBeforeProxySerialization () |
Invoked before the object is serialized. | |
void | OnAfterProxyDeserialization () |
Invoked after the object has been deserialized. | |
Add this interface to objects that are included in proxy serialization.
Quests aren't directly serializable because they contain references to subassets. To serialize and deserialize quests in JSON format, their data must be copied to/from a serializable proxy object. The proxy object and its subobjects receive the messages in this interface.
void PixelCrushers.QuestMachine.IProxySerializationCallbackReceiver.OnAfterProxyDeserialization | ( | ) |
Invoked after the object has been deserialized.
Implementations may want to reconstruct non-serializable data from temporary, serialized variables. For example, a ScriptableObject with subassets may want to recreate those subassets by reconstituting them from a previously-saved JSON representation.
Implemented in PixelCrushers.QuestMachine.SetDMMapIconQuestAction, PixelCrushers.QuestMachine.AlertQuestAction, PixelCrushers.QuestMachine.AudioQuestAction, PixelCrushers.QuestMachine.AudioClipQuestContent, PixelCrushers.QuestMachine.ButtonQuestContent, PixelCrushers.QuestMachine.IconQuestContent, and PixelCrushers.QuestMachine.QuestSubasset.
void PixelCrushers.QuestMachine.IProxySerializationCallbackReceiver.OnBeforeProxySerialization | ( | ) |
Invoked before the object is serialized.
Implementations may want to copy non-serializable data into a temporary, serializable variable. For example, a ScriptableObject with subassets may want to serialize those subassets into a string representation in JSON format.
Implemented in PixelCrushers.QuestMachine.SetDMMapIconQuestAction, PixelCrushers.QuestMachine.AlertQuestAction, PixelCrushers.QuestMachine.AudioQuestAction, PixelCrushers.QuestMachine.AudioClipQuestContent, PixelCrushers.QuestMachine.ButtonQuestContent, PixelCrushers.QuestMachine.IconQuestContent, and PixelCrushers.QuestMachine.QuestSubasset.