Table of Contents

Class ContentObservation

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

One process's content census (ValheimCLI's valheim.observe/content-census): which side it reports being, its owner plugin's build, the whole registries' sizes, and the registered content in scope with every shared hash. An older adapter may omit StatusEffects or Pieces; those checks then report unsupported, never missing or present. Read with Read(GameActor, string, ContentExpectations).

public sealed record ContentObservation
Inheritance
object
ContentObservation

Constructors

ContentObservation(CensusSide, bool, CensusOwner, IReadOnlyList<string>, CensusTotals, IReadOnlyList<ObservedContent>, IReadOnlyList<ObservedContent>, IReadOnlyList<ObservedRecipe>, IReadOnlyList<CensusCollision>, IReadOnlyList<ObservedContent>?, IReadOnlyList<ObservedPiece>?)

One process's content census (ValheimCLI's valheim.observe/content-census): which side it reports being, its owner plugin's build, the whole registries' sizes, and the registered content in scope with every shared hash. An older adapter may omit StatusEffects or Pieces; those checks then report unsupported, never missing or present. Read with Read(GameActor, string, ContentExpectations).

public ContentObservation(CensusSide Side, bool Dedicated, CensusOwner Owner, IReadOnlyList<string> Scope, CensusTotals Totals, IReadOnlyList<ObservedContent> Items, IReadOnlyList<ObservedContent> Prefabs, IReadOnlyList<ObservedRecipe> Recipes, IReadOnlyList<CensusCollision> Collisions, IReadOnlyList<ObservedContent>? StatusEffects = null, IReadOnlyList<ObservedPiece>? Pieces = null)

Parameters

Side CensusSide
Dedicated bool
Owner CensusOwner
Scope IReadOnlyList<string>
Totals CensusTotals
Items IReadOnlyList<ObservedContent>
Prefabs IReadOnlyList<ObservedContent>
Recipes IReadOnlyList<ObservedRecipe>
Collisions IReadOnlyList<CensusCollision>
StatusEffects IReadOnlyList<ObservedContent>
Pieces IReadOnlyList<ObservedPiece>

Properties

Collisions

public IReadOnlyList<CensusCollision> Collisions { get; init; }

Property Value

IReadOnlyList<CensusCollision>

Dedicated

public bool Dedicated { get; init; }

Property Value

bool

Items

public IReadOnlyList<ObservedContent> Items { get; init; }

Property Value

IReadOnlyList<ObservedContent>

Owner

public CensusOwner Owner { get; init; }

Property Value

CensusOwner

Pieces

public IReadOnlyList<ObservedPiece>? Pieces { get; init; }

Property Value

IReadOnlyList<ObservedPiece>

Prefabs

public IReadOnlyList<ObservedContent> Prefabs { get; init; }

Property Value

IReadOnlyList<ObservedContent>

Recipes

public IReadOnlyList<ObservedRecipe> Recipes { get; init; }

Property Value

IReadOnlyList<ObservedRecipe>

Scope

public IReadOnlyList<string> Scope { get; init; }

Property Value

IReadOnlyList<string>

Side

public CensusSide Side { get; init; }

Property Value

CensusSide

StatusEffects

public IReadOnlyList<ObservedContent>? StatusEffects { get; init; }

Property Value

IReadOnlyList<ObservedContent>

Totals

public CensusTotals Totals { get; init; }

Property Value

CensusTotals