Table of Contents

Class DeclaredPatch

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll

A patch the mod declares: its target, Type::Name for any overload or Type::Name(ParameterType,...) for one; its kind; and optionally the patch method (Type::Name, with or without parameters). Types are written as .NET writes them: Terminal, MyMod.Plugin+RegisterCommands, System.Int32.

public sealed record DeclaredPatch
Inheritance
object
DeclaredPatch

Constructors

DeclaredPatch(string, string, string?)

A patch the mod declares: its target, Type::Name for any overload or Type::Name(ParameterType,...) for one; its kind; and optionally the patch method (Type::Name, with or without parameters). Types are written as .NET writes them: Terminal, MyMod.Plugin+RegisterCommands, System.Int32.

public DeclaredPatch(string Target, string Kind, string? Patch = null)

Parameters

Target string
Kind string
Patch string

Properties

Kind

public string Kind { get; init; }

Property Value

string

Patch

public string? Patch { get; init; }

Property Value

string

Target

public string Target { get; init; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.