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