Table of Contents

Class TestAccess

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

Establishes explicitly requested test access on owned disposable actors only.

public static class TestAccess
Inheritance
object
TestAccess

Methods

Ensure(GameActor, TestActorRole, bool)

Enables devcommands and, when needed, acknowledges cheats on this owned disposable profile. Menu setup enables devcommands only: the character does not exist yet. Call again after joining. Does not change AllowOnServerClients or bypass a role refusal; stage that setting when client mutations are needed.

public static TestAccessState Ensure(GameActor actor, TestActorRole role, bool clientMutations = false)

Parameters

actor GameActor
role TestActorRole
clientMutations bool

Returns

TestAccessState

Read(GameActor)

Reads the pinned core's structured observation. Missing or older core commands refuse setup.

public static TestAccessState Read(GameActor actor)

Parameters

actor GameActor

Returns

TestAccessState