Table of Contents

Class OneShotServerContext

Namespace
Valheim.Testing.GameSessions
Assembly
Valheim.Testing.GameSessions.dll

The strict plans and fixture identity prepared for a mod-owned one-shot server scenario.

public sealed class OneShotServerContext
Inheritance
object
OneShotServerContext

Properties

ClientPlan

The prepared clean client plan, or null for --server-only.

public ClientRunPlan? ClientPlan { get; init; }

Property Value

ClientRunPlan

ServerPlan

The owned server's validated plan.

public required ServerRunPlan ServerPlan { get; init; }

Property Value

ServerRunPlan

ValidatedInputs

The exact object returned by ValidateInputs(), if implemented.

public object? ValidatedInputs { get; init; }

Property Value

object

WorldUid

The fixture world UID checked by the runner before invoking the scenario.

public required string WorldUid { get; init; }

Property Value

string

Methods

RequireInputs<T>()

Gets the scenario's validated input without rereading the original settings.

public T RequireInputs<T>() where T : class

Returns

T

Type Parameters

T