Class ReviewCapture
- Namespace
- Valheim.Testing.GameSessions
- Assembly
- Valheim.Testing.GameSessions.dll
Makes a reproducible still view with a protected, arrived player. It restores the client's exact starting safety, weather, debug time, mist and camera mode on success or failure. A failed restore fails the capture even if a complete PNG was written. The default ValheimCLI plugin also restores on unload when the client is still alive.
public static class ReviewCapture
- Inheritance
-
objectReviewCapture
Methods
Capture(GameActor, GameActor, IGameHost, ReviewCapturePlan, TimeSpan, TimeSpan, CancellationToken)
Capture from a joined client, fetching only this run's image directory from its owned host. Synchronous like the
arrival and commands it issues, so it runs directly inside a ClientRound.Step; it waits for the host fetch.
public static ReviewCaptureReceipt Capture(GameActor server, GameActor client, IGameHost clientHost, ReviewCapturePlan plan, TimeSpan arrivalTimeout, TimeSpan fetchTimeout, CancellationToken cancellation = default)
Parameters
serverGameActorclientGameActorclientHostIGameHostplanReviewCapturePlanarrivalTimeoutTimeSpanfetchTimeoutTimeSpancancellationCancellationToken
Returns
Validate(ReviewCapturePlan, HostShellKind)
The one rule for a capture plan: id, weather, time, camera distance, height, azimuth, supersize, host and evidence directories and provenance. Capture(GameActor, GameActor, IGameHost, ReviewCapturePlan, TimeSpan, TimeSpan, CancellationToken) applies it first; call it to refuse a plan before launch.
public static void Validate(ReviewCapturePlan plan, HostShellKind shell)
Parameters
planReviewCapturePlanshellHostShellKind