Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_Main.h
Show All 16 Lines | |||||
#ifndef INCLUDED_JSI_MAIN | #ifndef INCLUDED_JSI_MAIN | ||||
#define INCLUDED_JSI_MAIN | #define INCLUDED_JSI_MAIN | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
namespace JSI_Main | namespace JSI_Main | ||||
{ | { | ||||
void QuitEngine(ScriptInterface::CxPrivate* pCxPrivate); | void QuitEngine(); | ||||
void StartAtlas(ScriptInterface::CxPrivate* pCxPrivate); | void StartAtlas(); | ||||
bool AtlasIsAvailable(ScriptInterface::CxPrivate* pCxPrivate); | bool AtlasIsAvailable(); | ||||
bool IsAtlasRunning(ScriptInterface::CxPrivate* pCxPrivate); | bool IsAtlasRunning(); | ||||
void OpenURL(ScriptInterface::CxPrivate* pCxPrivate, const std::string& url); | void OpenURL(const std::string& url); | ||||
std::wstring GetSystemUsername(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring GetSystemUsername(); | ||||
std::wstring GetMatchID(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring GetMatchID(); | ||||
JS::Value LoadMapSettings(ScriptInterface::CxPrivate* pCxPrivate, const VfsPath& pathname); | JS::Value LoadMapSettings(ScriptInterface::CxPrivate* pCxPrivate, const VfsPath& pathname); | ||||
bool HotkeyIsPressed_(ScriptInterface::CxPrivate* pCxPrivate, const std::string& hotkeyName); | bool HotkeyIsPressed_(const std::string& hotkeyName); | ||||
int GetFps(ScriptInterface::CxPrivate* pCxPrivate); | int GetFps(); | ||||
int GetTextWidth(ScriptInterface::CxPrivate* pCxPrivate, const std::string& fontName, const std::wstring& text); | int GetTextWidth(const std::string& fontName, const std::wstring& text); | ||||
std::string CalculateMD5(ScriptInterface::CxPrivate* pCxPrivate, const std::string& input); | std::string CalculateMD5(const std::string& input); | ||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
} | } | ||||
#endif // INCLUDED_JSI_MAIN | #endif // INCLUDED_JSI_MAIN |
Wildfire Games · Phabricator