Difference between revisions of "EVENT TYPE GAMEMODE CHANGE"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split out of event)
 
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> Game Mode Switch
+
{{Event
*<b>Sent From:</b>
+
|when= Game Mode Switch
*<b>Sent To: module</b>
+
|from=
 
+
|to= [[module]]
Parameters:
+
|int0name = nNewGameMode
 
+
|int0desc = New Game Mode (GM_* constant)
*int(0) - New Game Mode (GM_* constant)
+
|int1name = nOldGameMode
*int(1) - Old Game Mode (GM_* constant)
+
|int1desc = Old Game Mode (GM_* constant)
 +
}}
  
 
[[Category:Event types|GAMEMODE_CHANGE]]
 
[[Category:Event types|GAMEMODE_CHANGE]]

Revision as of 17:59, 24 July 2009

Source:
[Undocumented]
Sent when:
Game Mode Switch
Sent from:
Sent to:
module
Parameters:
  • Integer 0: New Game Mode (GM_* constant)
  • Integer 1: Old Game Mode (GM_* constant)

Usage

case EVENT_TYPE_GAMEMODE_CHANGE:
{
int nNewGameMode = GetEventInteger(ev, 0); // New Game Mode (GM_* constant)
int nOldGameMode = GetEventInteger(ev, 1); // Old Game Mode (GM_* constant)

// insert event-handling code here

break;
}