Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_Game.h
Show All 16 Lines | |||||
#ifndef INCLUDED_JSI_GAME | #ifndef INCLUDED_JSI_GAME | ||||
#define INCLUDED_JSI_GAME | #define INCLUDED_JSI_GAME | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
namespace JSI_Game | namespace JSI_Game | ||||
{ | { | ||||
bool IsGameStarted(ScriptInterface::CxPrivate* pCxPrivate); | bool IsGameStarted(); | ||||
void StartGame(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue attribs, int playerID); | void StartGame(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue attribs, int playerID); | ||||
void Script_EndGame(ScriptInterface::CxPrivate* pCxPrivate); | void Script_EndGame(); | ||||
int GetPlayerID(ScriptInterface::CxPrivate* pCxPrivate); | int GetPlayerID(); | ||||
void SetPlayerID(ScriptInterface::CxPrivate* pCxPrivate, int id); | void SetPlayerID(int id); | ||||
void SetViewedPlayer(ScriptInterface::CxPrivate* pCxPrivate, int id); | void SetViewedPlayer(int id); | ||||
float GetSimRate(ScriptInterface::CxPrivate* pCxPrivate); | float GetSimRate(); | ||||
void SetSimRate(ScriptInterface::CxPrivate* pCxPrivate, float rate); | void SetSimRate(float rate); | ||||
bool IsPaused(ScriptInterface::CxPrivate* pCxPrivate); | bool IsPaused(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SetPaused(ScriptInterface::CxPrivate* pCxPrivate, bool pause, bool sendMessage); | void SetPaused(ScriptInterface::CxPrivate* pCxPrivate, bool pause, bool sendMessage); | ||||
bool IsVisualReplay(ScriptInterface::CxPrivate* pCxPrivate); | bool IsVisualReplay(); | ||||
std::wstring GetCurrentReplayDirectory(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring GetCurrentReplayDirectory(); | ||||
void RewindTimeWarp(ScriptInterface::CxPrivate* pCxPrivate); | void RewindTimeWarp(); | ||||
void EnableTimeWarpRecording(ScriptInterface::CxPrivate* pCxPrivate, unsigned int numTurns); | void EnableTimeWarpRecording(unsigned int numTurns); | ||||
void DumpTerrainMipmap(ScriptInterface::CxPrivate* pCxPrivate); | void DumpTerrainMipmap(); | ||||
void RegisterScriptFunctions(const ScriptInterface& ScriptInterface); | void RegisterScriptFunctions(const ScriptInterface& ScriptInterface); | ||||
} | } | ||||
#endif // INCLUDED_JSI_GAME | #endif // INCLUDED_JSI_GAME |
Wildfire Games · Phabricator