Class SaveVars
Represents a SAVEVARS.DAT file (must be a .175 or later save).
Namespace: DaggerfallConnect.Save
Assembly: Assembly-CSharp.dll
Syntax
public class SaveVars
Constructors
| Improve this Doc View SourceSaveVars()
Default constructor.
Declaration
public SaveVars()
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 SourceAllMapLocationsRevealedMode
Gets whether cheat to reveal all map locations is on from savevars.
Declaration
public bool AllMapLocationsRevealedMode { get; }
Property Value
Type | Description |
---|---|
Boolean |
BiographyAvoidHitMod
Gets biography hit avoidance modifier from savevars.
Declaration
public int BiographyAvoidHitMod { get; }
Property Value
Type | Description |
---|---|
Int32 |
BiographyFatigueMod
Gets biography fatigue modifier from savevars.
Declaration
public int BiographyFatigueMod { get; }
Property Value
Type | Description |
---|---|
Int32 |
BiographyResistDiseaseMod
Gets biography resist modifier from savevars.
Declaration
public int BiographyResistDiseaseMod { get; }
Property Value
Type | Description |
---|---|
Int32 |
BiographyResistMagicMod
Gets biography magic modifier from savevars.
Declaration
public int BiographyResistMagicMod { get; }
Property Value
Type | Description |
---|---|
Int32 |
BiographyResistPoisonMod
Gets biography resist poison modifier from savevars.
Declaration
public int BiographyResistPoisonMod { get; }
Property Value
Type | Description |
---|---|
Int32 |
BreathRemaining
Gets breath remaining when underwater from savevars.
Declaration
public int BreathRemaining { get; }
Property Value
Type | Description |
---|---|
Int32 |
CautiousTravel
Gets whether cautious travel is set from savevars.
Declaration
public bool CautiousTravel { get; }
Property Value
Type | Description |
---|---|
Boolean |
ClimateWeathers
Gets weathers in the six weather climates
Declaration
public byte[] ClimateWeathers { get; }
Property Value
Type | Description |
---|---|
Byte[] |
CrimeCommitted
Gets type of crime committed by player from savevars.
Declaration
public byte CrimeCommitted { get; }
Property Value
Type | Description |
---|---|
Byte |
EmperorSonName
Gets Emperor's son's name from savevars.
Declaration
public string EmperorSonName { get; }
Property Value
Type | Description |
---|---|
String |
Factions
Gets array of factions read from savevars.
Declaration
public FactionFile.FactionData[] Factions { get; }
Property Value
Type | Description |
---|---|
FactionFile.FactionData[] |
Filename
Declaration
public static string Filename { get; }
Property Value
Type | Description |
---|---|
String |
FootOrHorseTravel
Gets whether foot/horse travel is set from savevars.
Declaration
public bool FootOrHorseTravel { get; }
Property Value
Type | Description |
---|---|
Boolean |
GameTime
Gets game time read from savevars.
Declaration
public uint GameTime { get; }
Property Value
Type | Description |
---|---|
UInt32 |
GlobalVars
Gets array of global variables.
Declaration
public byte[] GlobalVars { get; }
Property Value
Type | Description |
---|---|
Byte[] |
GodMode
Gets whether invulnerability cheat is on from savevars.
Declaration
public bool GodMode { get; }
Property Value
Type | Description |
---|---|
Boolean |
InDungeonWater
Gets whether character is in water in a dungeon from savevars.
Declaration
public bool InDungeonWater { get; }
Property Value
Type | Description |
---|---|
Boolean |
InnsTravel
Gets whether inns travel is set from savevars.
Declaration
public bool InnsTravel { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsDay
Gets whether it is daytime from savevars.
Declaration
public bool IsDay { get; }
Property Value
Type | Description |
---|---|
Boolean |
LastSkillCheckTime
Gets time of last check for raising skills, read from savevars.
Declaration
public uint LastSkillCheckTime { get; }
Property Value
Type | Description |
---|---|
UInt32 |
LastSpellCost
Gets the cost of the last readied spell from savevars.
Declaration
public short LastSpellCost { get; }
Property Value
Type | Description |
---|---|
Int16 |
MaceOfMolagBalSpellPointBonus
Gets Mace of Molag Bal spell point bonus, read from savevars.
Declaration
public int MaceOfMolagBalSpellPointBonus { get; }
Property Value
Type | Description |
---|---|
Int32 |
MaceOfMolagBalSpellPointBonusTimeLimit
Gets time Mace of Molag Bal spell point bonus ends, read from savevars.
Declaration
public uint MaceOfMolagBalSpellPointBonusTimeLimit { get; }
Property Value
Type | Description |
---|---|
UInt32 |
MaceOfMolagBalStrengthBonus
Gets Mace of Molag Bal strength bonus, read from savevars.
Declaration
public int MaceOfMolagBalStrengthBonus { get; }
Property Value
Type | Description |
---|---|
Int32 |
MaceOfMolagBalStrengthBonusTimeLimit
Gets time Mace of Molag Bal strength bonus ends, read from savevars.
Declaration
public uint MaceOfMolagBalStrengthBonusTimeLimit { get; }
Property Value
Type | Description |
---|---|
UInt32 |
PlayerOwnedShip
The type of ship owned by the player.
Declaration
public ShipType PlayerOwnedShip { get; }
Property Value
Type | Description |
---|---|
ShipType |
RegionData
Gets array of regionData read from savevars.
Declaration
public PlayerEntity.RegionDataRecord[] RegionData { get; }
Property Value
Type | Description |
---|---|
PlayerEntity.RegionDataRecord[] |
UsingLeftHandWeapon
Gets whether left-hand weapon is being used from savevars.
Declaration
public bool UsingLeftHandWeapon { get; }
Property Value
Type | Description |
---|---|
Boolean |
WeaponDrawn
Gets whether weapon is drawn from savevars.
Declaration
public bool WeaponDrawn { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceOpen(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 |