Patchclass

Represents a complete set of changes to be applied to a JSON structure.

objectPatch
Namespace
global
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Json.Patch

Note

A patch contains all the operations needed to transform one JSON structure into another while preserving object identity and relationships.

Constructors1

Showing 1 constructors

public Patch()PUBLICCONSTRUCTOR

Properties4

Showing 4 properties

public System.Collections.Generic.List`1<Sandbox.Json.AddedObject> Sandbox.Json.Patch.AddedObjects { get; set; }PUBLICGETSET

Objects that need to be added to the target structure.

Returns:List<AddedObject>

public System.Collections.Generic.List`1<Sandbox.Json.MovedObject> Sandbox.Json.Patch.MovedObjects { get; set; }PUBLICGETSET

Objects that need to be moved to a different location in the structure.

Returns:List<MovedObject>

public System.Collections.Generic.List`1<Sandbox.Json.PropertyOverride> Sandbox.Json.Patch.PropertyOverrides { get; set; }PUBLICGETSET

Property values that need to be changed on existing objects.

Returns:List<PropertyOverride>

public System.Collections.Generic.List`1<Sandbox.Json.RemovedObject> Sandbox.Json.Patch.RemovedObjects { get; set; }PUBLICGETSET

Objects that need to be removed from the target structure.

Returns:List<RemovedObject>

On this page