Table of Contents

Interface IOneShotHostedScenario

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

A mod-owned assertion for valheim-test start, where the owned client hosts the fixture world. The toolkit prepares the client, character, world, pins, report, and cleanup. The scenario receives the joined client and its hosting actor for one round; it should record each assertion with Step(string, Action).

public interface IOneShotHostedScenario

Properties

Name

A short name recorded with the private run evidence.

string Name { get; }

Property Value

string

Methods

Run(ClientRound)

Exercise and assert within the prepared hosted world.

void Run(ClientRound round)

Parameters

round ClientRound

Run(ClientRound, object?)

Receives the exact preflight value when the scenario also implements IOneShotScenarioPreflight. Existing scenarios use Run(ClientRound) by default; a scenario with inputs can override this overload and avoid reading its settings a second time.

void Run(ClientRound round, object? validatedInputs)

Parameters

round ClientRound
validatedInputs object