Show / Hide Table of Contents

Class PersistentGlobalVars

Stores global variables for PlayerEntity. Could have just used a bool[64] array but this design conveys more information.

Inheritance
Object
PersistentGlobalVars
Namespace: DaggerfallWorkshop.Game.Player
Assembly: Assembly-CSharp.dll
Syntax
public class PersistentGlobalVars

Methods

| Improve this Doc View Source

DeserializeGlobalVars(GlobalVar[])

Restore global variables from deserialized list.

Declaration
public void DeserializeGlobalVars(GlobalVar[] globalVarsList)
Parameters
Type Name Description
GlobalVar[] globalVarsList
| Improve this Doc View Source

GetGlobalVar(Int32)

Get current value of global variable.

Declaration
public bool GetGlobalVar(int key)
Parameters
Type Name Description
Int32 key
Returns
Type Description
Boolean
| Improve this Doc View Source

GetGlobalVarDetails(Int32)

Gets full details of a global variable.

Declaration
public GlobalVar GetGlobalVarDetails(int key)
Parameters
Type Name Description
Int32 key
Returns
Type Description
GlobalVar
| Improve this Doc View Source

ImportClassicGlobalVars(SaveVars)

Import global variables from classic save.

Declaration
public void ImportClassicGlobalVars(SaveVars saveVars)
Parameters
Type Name Description
SaveVars saveVars
| Improve this Doc View Source

Reset()

Resets global vars back to starting point. Must call this at least once before using global vars.

Declaration
public void Reset()
| Improve this Doc View Source

SerializeGlobalVars()

Get global variables as a flat array for serialization.

Declaration
public GlobalVar[] SerializeGlobalVars()
Returns
Type Description
GlobalVar[]
| Improve this Doc View Source

SetGlobalVar(Int32, Boolean)

Sets a global variable value.

Declaration
public void SetGlobalVar(int key, bool value)
Parameters
Type Name Description
Int32 key
Boolean value
| Improve this Doc View Source

ZeroAllGlobalVars()

Set all global variables to false.

Declaration
public void ZeroAllGlobalVars()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX