Changeset View
Changeset View
Standalone View
Standalone View
source/gui/Scripting/ScriptFunctions.cpp
/* Copyright (C) 2019 Wildfire Games. | /* Copyright (C) 2019 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 35 Lines | |||||
/* | /* | ||||
* This file defines a set of functions that are available to GUI scripts, to allow | * This file defines a set of functions that are available to GUI scripts, to allow | ||||
* interaction with the rest of the engine. | * interaction with the rest of the engine. | ||||
* Functions are exposed to scripts within the global object 'Engine', so | * Functions are exposed to scripts within the global object 'Engine', so | ||||
* scripts should call "Engine.FunctionName(...)" etc. | * scripts should call "Engine.FunctionName(...)" etc. | ||||
*/ | */ | ||||
void GuiScriptingInit(ScriptInterface& scriptInterface) | void GuiScriptingInit(ScriptInterface& scriptInterface) | ||||
{ | { | ||||
ScriptRequest rq(scriptInterface); | |||||
JSI_GUISize::RegisterScriptClass(scriptInterface); | JSI_GUISize::RegisterScriptClass(scriptInterface); | ||||
JSI_ConfigDB::RegisterScriptFunctions(scriptInterface); | JSI_ConfigDB::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Console::RegisterScriptFunctions(scriptInterface); | JSI_Console::RegisterScriptFunctions(rq); | ||||
JSI_Debug::RegisterScriptFunctions(scriptInterface); | JSI_Debug::RegisterScriptFunctions(scriptInterface); | ||||
JSI_GUIManager::RegisterScriptFunctions(scriptInterface); | JSI_GUIManager::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Game::RegisterScriptFunctions(scriptInterface); | JSI_Game::RegisterScriptFunctions(scriptInterface); | ||||
JSI_GameView::RegisterScriptFunctions(scriptInterface); | JSI_GameView::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Hotkey::RegisterScriptFunctions(scriptInterface); | JSI_Hotkey::RegisterScriptFunctions(scriptInterface); | ||||
JSI_L10n::RegisterScriptFunctions(scriptInterface); | JSI_L10n::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Lobby::RegisterScriptFunctions(scriptInterface); | JSI_Lobby::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Main::RegisterScriptFunctions(scriptInterface); | JSI_Main::RegisterScriptFunctions(scriptInterface); | ||||
Show All 11 Lines |
Wildfire Games · Phabricator
year.