Table of Contents

Class HostedClientRounds

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

A hosting client's ClientRounds on this machine, driven by the caller (#829). The fixture world is placed through the hosting layer's one journalled site, as start's, a session's and a campaign's are: journalled in this machine's run journal before anything reaches the client's worlds_local, and moved out after into <Output>/<runId>/host-world (fetched into host-world beside it), so after a killed run valheim-test env status lists the world and valheim-test env recover --run moves it out.

public static class HostedClientRounds
Inheritance
object
HostedClientRounds

Methods

Run(ClientRounds, Func<ClientSession>, Action<ClientRound>)

Runs a hosting client's rounds (the plan's HostWorld section), opening the client with openClient (for example Open(ClientRunPlan, string, CancellationToken)). In measure, Server and Client are the same host. The placement's journal lines go to the run this flow journals (its own run's, or one run for the whole process), under the actor client.

public static void Run(this ClientRounds rounds, Func<ClientSession> openClient, Action<ClientRound> measure)

Parameters

rounds ClientRounds
openClient Func<ClientSession>
measure Action<ClientRound>