Difference between revisions of "Script/World"

From SF3
Jump to: navigation, search
(Class Methods)
Line 22: Line 22:
 
|
 
|
 
| style = 'color: #505050; line-height: 0.5;' |''enable a dialogue topic node''
 
| style = 'color: #505050; line-height: 0.5;' |''enable a dialogue topic node''
 +
|-
 +
| style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|bool]]
 +
| style='color: black; width: 90%; line-height: 1.0;' | '''GetGlobalBool''' (const [[../BasicDataTypes|string]]&in ''_sVarName'', const [[../BasicDataTypes|bool]] ''_bDefault'' = false) const
 +
|-
 +
|
 +
| style = 'color: #505050; line-height: 0.5;' |''get global variable of type bool''
 +
|-
 +
| style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|int]]
 +
| style='color: black; width: 90%; line-height: 1.0;' | '''GetGlobalInt''' (const [[../BasicDataTypes|string]]&in ''_sVarName'', const [[../BasicDataTypes|int]] ''_iDefault'' = - 1) const
 +
|-
 +
|
 +
| style = 'color: #505050; line-height: 0.5;' |''get global variable of type integer''
 +
|-
 +
| style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|void]]
 +
| style='color: black; width: 90%; line-height: 1.0;' | '''SetGlobalBool''' (const [[../BasicDataTypes|string]]&in ''_sVarName'', const [[../BasicDataTypes|bool]] ''_bValue'')
 +
|-
 +
|
 +
| style = 'color: #505050; line-height: 0.5;' |''set global variable of type bool''
 +
|-
 +
| style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|void]]
 +
| style='color: black; width: 90%; line-height: 1.0;' | '''SetGlobalInt''' (const [[../BasicDataTypes|string]]&in ''_sVarName'', const [[../BasicDataTypes|int]] ''_iValue'')
 +
|-
 +
|
 +
| style = 'color: #505050; line-height: 0.5;' |''set global variable of type integer''
 
|}
 
|}

Revision as of 14:41, 5 October 2016

class World

The main interface for interacting with the level the player is currently in.

Class Methods

void EnableDialogueTopic (const string&in _sContainerName, const string&in _sTopicName, const bool _bEnabled)
get the random number generator
void BlockDialogueTopicNode (const string&in _sContainerName, const string&in _sNodeName)
disable a dialogue topic node
void UnblockDialogueTopicNode (const string&in _sContainerName, const string&in _sNodeName)
enable a dialogue topic node
bool GetGlobalBool (const string&in _sVarName, const bool _bDefault = false) const
get global variable of type bool
int GetGlobalInt (const string&in _sVarName, const int _iDefault = - 1) const
get global variable of type integer
void SetGlobalBool (const string&in _sVarName, const bool _bValue)
set global variable of type bool
void SetGlobalInt (const string&in _sVarName, const int _iValue)
set global variable of type integer

class World

The main interface for interacting with the level the player is currently in.

Class Methods

void EnableDialogueTopic (const string&in _sContainerName, const string&in _sTopicName, const bool _bEnabled)
get the random number generator
void BlockDialogueTopicNode (const string&in _sContainerName, const string&in _sNodeName)
disable a dialogue topic node
void UnblockDialogueTopicNode (const string&in _sContainerName, const string&in _sNodeName)
enable a dialogue topic node