Class SavedDungeon
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
-
objectSavedDungeon
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
PrefabstringUidstringXfloatYfloatZfloatZoneXintZoneZintCustomInteriorboolFormatstringRoomsIReadOnlyList<DungeonRoom>LocationDungeonLocation
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
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