mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 14:12:59 +00:00
Changes the Console to expose global functions to scripts instead of properties.
Fixes #2140 Refs #1886 This was SVN commit r13884.
This commit is contained in:
@@ -402,26 +402,3 @@ JSFunctionSpec ScriptFunctionTable[] =
|
||||
{0}
|
||||
};
|
||||
#undef JS_FUNC
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// property accessors
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
enum ScriptGlobalTinyIDs
|
||||
{
|
||||
GLOBAL_SELECTION,
|
||||
GLOBAL_GROUPSARRAY,
|
||||
GLOBAL_CAMERA,
|
||||
GLOBAL_CONSOLE,
|
||||
GLOBAL_LIGHTENV
|
||||
};
|
||||
|
||||
JSPropertySpec ScriptGlobalTable[] =
|
||||
{
|
||||
{ "console" , GLOBAL_CONSOLE, JSPROP_PERMANENT|JSPROP_READONLY, JSI_Console::getConsole, 0 },
|
||||
|
||||
// end of table marker
|
||||
{ 0, 0, 0, 0, 0 },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user