Table of Contents

Class PatchCondition

Namespace
Vintagestory.ServerMods.NoObf
Assembly
VSEssentials.dll

A condition for a json patch. Conditions are based on the currently loaded worldconfig. Open in GitHub

[DocumentAsJson]
public class PatchCondition
Inheritance
PatchCondition

Fields

When (Required)

The key for the world config that this condition relies on.

[DocumentAsJson("Required", "", false)]
public string When

Field Value

string

IsValue (Recommended) (Default: None)

What value does the world config need to be for this patch to happen? Required if not using useValue. Will be ignored if using useValue.

[DocumentAsJson("Recommended", "None", false)]
public string IsValue

Field Value

string

useValue (Optional) (Default: False)

If true, then this will replace the Value with the value in the world config. Can be used to create more complex patches. Required if not using IsValue.

[DocumentAsJson("Optional", "False", false)]
public bool useValue

Field Value

bool