Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/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); | |||||
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(ScriptInterface::CxPrivate* pCxPrivate); | ||||
int GetPlayerID(ScriptInterface::CxPrivate* pCxPrivate); | int GetPlayerID(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SetPlayerID(ScriptInterface::CxPrivate* pCxPrivate, int id); | void SetPlayerID(ScriptInterface::CxPrivate* pCxPrivate, int id); | ||||
void SetViewedPlayer(ScriptInterface::CxPrivate* pCxPrivate, int id); | void SetViewedPlayer(ScriptInterface::CxPrivate* pCxPrivate, int id); | ||||
float GetSimRate(ScriptInterface::CxPrivate* pCxPrivate); | float GetSimRate(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SetSimRate(ScriptInterface::CxPrivate* pCxPrivate, float rate); | void SetSimRate(ScriptInterface::CxPrivate* pCxPrivate, float rate); | ||||
bool IsPaused(ScriptInterface::CxPrivate* pCxPrivate); | bool IsPaused(ScriptInterface::CxPrivate* pCxPrivate); | ||||
Show All 11 Lines |
Wildfire Games · Phabricator