BiowareDB.getVariableValue - multiple declarations

Function BiowareDB.getVariableValue

Get the variable value at index

const(T) getVariableValue(T) (
  size_t index
) const
if (is(T == OWInt) || is(T == NWFloat) || is(T == NWString) || is(T == NWVector) || is(T == NWLocation) || is(T == BinaryObject));

Note

Can be used to retrieve deleted variable values.

Parameters

NameDescription
T Type of the variable. Must match the stored variable type.
index Index of the variable in the table

Returns

the variable value

Throws

BiowareDBException if stored type != requested type

Function BiowareDB.getVariableValue

Search and return the value of a variable

Nullable!(const(T)) getVariableValue(T) (
  in PCID pcid,
  in string varName
) const
if (is(T == OWInt) || is(T == NWFloat) || is(T == NWString) || is(T == NWVector) || is(T == NWLocation) || is(T == BinaryObject));

Expected O(1).

Parameters

NameDescription
T Type of the variable. Must match the stored variable type.
pcid player character identifier
Should be his account name concatenated with his character name
null for module variables
varName Campaign variable name

Returns

the variable value, or null if not found

Function BiowareDB.getVariableValue

Search and return the value of a variable

Nullable!(const(T)) getVariableValue(T) (
  in string account,
  in string character,
  in string varName
) const
if (is(T == OWInt) || is(T == NWFloat) || is(T == NWString) || is(T == NWVector) || is(T == NWLocation) || is(T == BinaryObject));

Expected O(1).

Parameters

NameDescription
T Type of the variable. Must match the stored variable type.
account Player account name
null for module variables
character Character name.
null for module variables
varName Campaign variable name

Returns

the variable value, or null if not found