Enum SerializerContext
- Namespace
- TinyLife
- Assembly
- Tiny Life.dll
A set of contexts that a Newtonsoft.Json.JsonSerializer can be used in. When a serializer is created using CreateSerializer(SerializerContext, EventHandler<ErrorEventArgs>, bool) or CreateSerializerSettings(SerializerContext, EventHandler<ErrorEventArgs>, bool), a context needs to be passed.
public enum SerializerContext
- Extension Methods
Fields
Copy = 4
An item is copied using JsonCopy<T>(T).
CustomContent = 3
A custom content file is being loaded or saved.
Debug = 2
A debug action, like a cheat, that involves saving and loading, is being executed.
GameSave = 1
A game save is being loaded or saved.
MetaFile = 0
A meta file, like the game's options, is being loaded or saved.
Preview = 5
An item is loaded only for preview, ie usually in a shallow context and not for actual use.