Superfighters Deluxe
GameScriptInterface Class Reference

The Superfighters Deluxe Game Script Interface which all scripts in the map editor inherits automatically. More...

Inheritance diagram for GameScriptInterface:

Properties

static IGame Game [get]
 Access to certain information and functions in the game. This can only be accessed inside functions. More...
 

Detailed Description

The Superfighters Deluxe Game Script Interface which all scripts in the map editor inherits automatically.

Functions that will always be called by the game:

*/
/*
 public void OnStartup()
 {
    // The game will always call the following method "public void OnStartup()" during a map start (or script activates). 
    // No triggers required. This is run before triggers that activate on startup (and before OnStartup triggers).
    Game.ShowPopupMessage("OnStartup is run when the map or script is started.");
  
    // This is the recommended place to hook up any events. To register an update loop:
    Events.UpdateCallback.Start(OnUpdate, 0);
 }
 
 public void OnUpdate(float elapsed) 
 {
    // Update loop (must be enabled in the OnStartup() function or AfterStartup() function).
    
 }
 
 public void AfterStartup()
 {
    // The game will always call the following method "public void AfterStartup()" after a map start (or script activates). 
    // No triggers required. This is run after triggers that activate on startup (and after OnStartup triggers).
    
 }
 
 public void OnShutdown()
 {
    // The game will always call the following method "public void OnShutdown()" before a map restart (or script deactivates). 
    // Perform some cleanup here or store some final information to Game.Data/Game.LocalStorage/Game.SessionStorage if needed.
    
 }
*/
/**

Property Documentation

◆ Game

IGame Game
staticget

Access to certain information and functions in the game. This can only be accessed inside functions.