Table of Contents

Class SavedDungeon

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

A dungeon generator's saved state on the server. Format is roomData (the byte array Valheim 1.0 writes), legacy (the room<i> fields of older saves, which the game reads when roomData is absent) or none. The generator stands at its location's position plus the location's rotation applied to the generator's offset in the location prefab (typically about 5000 m up); InteriorOffset is that difference.

public sealed record SavedDungeon
Inheritance
object
SavedDungeon

Constructors

SavedDungeon(string, string, float, float, float, int, int, bool, string, IReadOnlyList<DungeonRoom>, DungeonLocation?)

A dungeon generator's saved state on the server. Format is roomData (the byte array Valheim 1.0 writes), legacy (the room<i> fields of older saves, which the game reads when roomData is absent) or none. The generator stands at its location's position plus the location's rotation applied to the generator's offset in the location prefab (typically about 5000 m up); InteriorOffset is that difference.

public SavedDungeon(string Prefab, string Uid, float X, float Y, float Z, int ZoneX, int ZoneZ, bool CustomInterior, string Format, IReadOnlyList<DungeonRoom> Rooms, DungeonLocation? Location)

Parameters

Prefab string
Uid string
X float
Y float
Z float
ZoneX int
ZoneZ int
CustomInterior bool
Format string
Rooms IReadOnlyList<DungeonRoom>
Location DungeonLocation

Properties

CustomInterior

public bool CustomInterior { get; init; }

Property Value

bool

Format

public string Format { get; init; }

Property Value

string

InteriorOffset

The generator's position minus its location's, or null without a location.

public (float X, float Y, float Z)? InteriorOffset { get; }

Property Value

(float X, float Y, float Z)?

Location

public DungeonLocation? Location { get; init; }

Property Value

DungeonLocation

Prefab

public string Prefab { get; init; }

Property Value

string

Rooms

public IReadOnlyList<DungeonRoom> Rooms { get; init; }

Property Value

IReadOnlyList<DungeonRoom>

Uid

public string Uid { get; init; }

Property Value

string

X

public float X { get; init; }

Property Value

float

Y

public float Y { get; init; }

Property Value

float

Z

public float Z { get; init; }

Property Value

float

ZoneX

public int ZoneX { get; init; }

Property Value

int

ZoneZ

public int ZoneZ { get; init; }

Property Value

int