Show / Hide Table of Contents

Class SaveVars

Represents a SAVEVARS.DAT file (must be a .175 or later save).

Inheritance
Object
SaveVars
Namespace: DaggerfallConnect.Save
Assembly: Assembly-CSharp.dll
Syntax
public class SaveVars

Constructors

| Improve this Doc View Source

SaveVars()

Default constructor.

Declaration
public SaveVars()
| Improve this Doc View Source

SaveVars(String, Boolean)

Open constructor.

Declaration
public SaveVars(string saveVarsPath, bool readOnly = true)
Parameters
Type Name Description
String saveVarsPath

Full path to SAVEVARS.DAT file.

Boolean readOnly

Flag to open file in read-only mode.

Properties

| Improve this Doc View Source

AllMapLocationsRevealedMode

Gets whether cheat to reveal all map locations is on from savevars.

Declaration
public bool AllMapLocationsRevealedMode { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

BiographyAvoidHitMod

Gets biography hit avoidance modifier from savevars.

Declaration
public int BiographyAvoidHitMod { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

BiographyFatigueMod

Gets biography fatigue modifier from savevars.

Declaration
public int BiographyFatigueMod { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

BiographyResistDiseaseMod

Gets biography resist modifier from savevars.

Declaration
public int BiographyResistDiseaseMod { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

BiographyResistMagicMod

Gets biography magic modifier from savevars.

Declaration
public int BiographyResistMagicMod { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

BiographyResistPoisonMod

Gets biography resist poison modifier from savevars.

Declaration
public int BiographyResistPoisonMod { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

BreathRemaining

Gets breath remaining when underwater from savevars.

Declaration
public int BreathRemaining { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

CautiousTravel

Gets whether cautious travel is set from savevars.

Declaration
public bool CautiousTravel { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

ClimateWeathers

Gets weathers in the six weather climates

Declaration
public byte[] ClimateWeathers { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

CrimeCommitted

Gets type of crime committed by player from savevars.

Declaration
public byte CrimeCommitted { get; }
Property Value
Type Description
Byte
| Improve this Doc View Source

EmperorSonName

Gets Emperor's son's name from savevars.

Declaration
public string EmperorSonName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

Factions

Gets array of factions read from savevars.

Declaration
public FactionFile.FactionData[] Factions { get; }
Property Value
Type Description
FactionFile.FactionData[]
| Improve this Doc View Source

Filename

Declaration
public static string Filename { get; }
Property Value
Type Description
String
| Improve this Doc View Source

FootOrHorseTravel

Gets whether foot/horse travel is set from savevars.

Declaration
public bool FootOrHorseTravel { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

GameTime

Gets game time read from savevars.

Declaration
public uint GameTime { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

GlobalVars

Gets array of global variables.

Declaration
public byte[] GlobalVars { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

GodMode

Gets whether invulnerability cheat is on from savevars.

Declaration
public bool GodMode { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

InDungeonWater

Gets whether character is in water in a dungeon from savevars.

Declaration
public bool InDungeonWater { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

InnsTravel

Gets whether inns travel is set from savevars.

Declaration
public bool InnsTravel { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsDay

Gets whether it is daytime from savevars.

Declaration
public bool IsDay { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

LastSkillCheckTime

Gets time of last check for raising skills, read from savevars.

Declaration
public uint LastSkillCheckTime { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

LastSpellCost

Gets the cost of the last readied spell from savevars.

Declaration
public short LastSpellCost { get; }
Property Value
Type Description
Int16
| Improve this Doc View Source

MaceOfMolagBalSpellPointBonus

Gets Mace of Molag Bal spell point bonus, read from savevars.

Declaration
public int MaceOfMolagBalSpellPointBonus { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MaceOfMolagBalSpellPointBonusTimeLimit

Gets time Mace of Molag Bal spell point bonus ends, read from savevars.

Declaration
public uint MaceOfMolagBalSpellPointBonusTimeLimit { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

MaceOfMolagBalStrengthBonus

Gets Mace of Molag Bal strength bonus, read from savevars.

Declaration
public int MaceOfMolagBalStrengthBonus { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MaceOfMolagBalStrengthBonusTimeLimit

Gets time Mace of Molag Bal strength bonus ends, read from savevars.

Declaration
public uint MaceOfMolagBalStrengthBonusTimeLimit { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

PlayerOwnedShip

The type of ship owned by the player.

Declaration
public ShipType PlayerOwnedShip { get; }
Property Value
Type Description
ShipType
| Improve this Doc View Source

RegionData

Gets array of regionData read from savevars.

Declaration
public PlayerEntity.RegionDataRecord[] RegionData { get; }
Property Value
Type Description
PlayerEntity.RegionDataRecord[]
| Improve this Doc View Source

UsingLeftHandWeapon

Gets whether left-hand weapon is being used from savevars.

Declaration
public bool UsingLeftHandWeapon { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

WeaponDrawn

Gets whether weapon is drawn from savevars.

Declaration
public bool WeaponDrawn { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Open(String, Boolean)

Opens a SAVEVARS.DAT file. Always uses FileUsage.UseDisk so possible to write back to original file.

Declaration
public bool Open(string saveVarsPath, bool readOnly = true)
Parameters
Type Name Description
String saveVarsPath

Full path to SAVEVARS.DAT file.

Boolean readOnly

Flag to open file in read-only mode.

Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX