Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_Main.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 18 Lines | namespace JSI_Main | ||||
bool IsAtlasRunning(ScriptInterface::CxPrivate* pCxPrivate); | bool IsAtlasRunning(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void OpenURL(ScriptInterface::CxPrivate* pCxPrivate, const std::string& url); | void OpenURL(ScriptInterface::CxPrivate* pCxPrivate, const std::string& url); | ||||
std::wstring GetSystemUsername(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring GetSystemUsername(ScriptInterface::CxPrivate* pCxPrivate); | ||||
std::wstring GetMatchID(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring GetMatchID(ScriptInterface::CxPrivate* pCxPrivate); | ||||
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_(ScriptInterface::CxPrivate* pCxPrivate, const std::string& hotkeyName); | ||||
int GetFps(ScriptInterface::CxPrivate* pCxPrivate); | int GetFps(ScriptInterface::CxPrivate* pCxPrivate); | ||||
int GetTextWidth(ScriptInterface::CxPrivate* pCxPrivate, const std::string& fontName, const std::wstring& text); | int GetTextWidth(ScriptInterface::CxPrivate* pCxPrivate, const std::string& fontName, const std::wstring& text); | ||||
void SetPauseGameOnFocusLossEnabled(ScriptInterface::CxPrivate* pCxPrivate, bool enabled); | |||||
void SetPauseRendererOnFocusLossEnabled(ScriptInterface::CxPrivate* pCxPrivate, bool enabled); | |||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
} | } | ||||
#endif | #endif |
Wildfire Games · Phabricator