Api Facepunch ActionGraphs SerializationOptions
class

SerializationOptions

public class SerializationOptions

Controls how ActionGraphs are (de)serialized.

Constructors

SerializationOptions(InputDefinition ImpliedTarget, IActionGraphCache Cache, ISourceLocation SourceLocation, IReadOnlyDictionary<Guid, Guid> GuidMap, Boolean WriteCacheReferences, Boolean ForceUpdateCached, Boolean MakeGuidsUnique)

Properties

Name Type Description
ImpliedTarget InputDefinition Add this input to any graphs deserialized in this scope, usually representing a "this" parameter holding the object this graph is embedded in. When serializing, omit this input from the serialized graph because we know it will be added automatically when deserializing.
Cache IActionGraphCache Re-use instances from this cache when deserializing, matching by Guid. Graphs will be added to the cache when serializing or deserializing in this scope. When serializing, if WriteCacheReferences is true, a minimal graph reference stub will be written instead of full graphs.
SourceLocation ISourceLocation For debugging / editors, describe where graphs deserialized in this scope came from.
GuidMap IReadOnlyDictionary<Guid, Guid> When deserializing, maps any graph Guids encountered.
WriteCacheReferences Boolean If true, and a Cache is provided, write a reference stub when serializing graphs instead of the full JSON.
ForceUpdateCached Boolean If true, replace cached instance when deserializing. Otherwise, it'll only be replaced if its ChangeId differs.
MakeGuidsUnique Boolean
Empty static SerializationOptions Default empty SerializationOptions.

Methods

virtual SerializationOptions <Clone>$()
Void Deconstruct(InputDefinition ImpliedTarget, IActionGraphCache Cache, ISourceLocation SourceLocation, IReadOnlyDictionary<Guid, Guid> GuidMap, Boolean WriteCacheReferences, Boolean ForceUpdateCached, Boolean MakeGuidsUnique)
Assembly: Facepunch.ActionGraphs Namespace: Facepunch.ActionGraphs Full Name: Facepunch.ActionGraphs.SerializationOptions