Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_Mod.h
/* Copyright (C) 2018 Wildfire Games. | /* Copyright (C) 2021 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 13 Lines | |||||
namespace JSI_Mod | namespace JSI_Mod | ||||
{ | { | ||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
JS::Value GetEngineInfo(ScriptInterface::CmptPrivate* pCmptPrivate); | JS::Value GetEngineInfo(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
JS::Value GetAvailableMods(ScriptInterface::CmptPrivate* pCmptPrivate); | JS::Value GetAvailableMods(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
void RestartEngine(ScriptInterface::CmptPrivate* pCmptPrivate); | void RestartEngine(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
void SetMods(ScriptInterface::CmptPrivate* pCmptPrivate, const std::vector<CStr>& mods); | void SetModsAndRestartEngine(ScriptInterface::CmptPrivate* pCmptPrivate, const std::vector<CStr>& mods); | ||||
} | } | ||||
#endif // INCLUDED_JSI_MOD | #endif // INCLUDED_JSI_MOD |
Wildfire Games · Phabricator