ConfigDataclass

Project configuration data is derived from this class

object→ConfigData
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract class Sandbox.ConfigData

Constructors1

Showing 1 constructors

Methods3

Showing 3 methods

public void Deserialize(string json)PUBLIC

ParameterTypeDescription
jsonstring—
Returns:void—

protected virtual void OnValidate()PROTECTEDVIRTUAL

Called after deserialization, and before serialization. A place to error check and make sure everything is fine.

Returns:void—

public System.Text.Json.Nodes.JsonObject Serialize()PUBLIC

Returns:JsonObject—

Properties3

Showing 3 properties

public System.Guid Sandbox.ConfigData.Guid { get; set; }PUBLICGETSET

Returns:Guid—

public bool Sandbox.ConfigData.LoadedFromDisk { get; set; }PUBLICGETSET

Whether this config was loaded from a file on disk, or created with code defaults.

Returns:bool—

public virtual int Sandbox.ConfigData.Version { get; set; }PUBLICVIRTUALGETSET

Returns:int—

On this page