Add Lua functions to print cluster id (closes #704)

This commit is contained in:
Alexander Bock
2018-08-28 13:58:32 -04:00
parent 8acddf74a9
commit 1f7b482efa
6 changed files with 45 additions and 0 deletions

View File

@@ -1564,6 +1564,23 @@ scripting::LuaLibrary OpenSpaceEngine::luaLibrary() {
{},
"string, string",
"Removes a tag (second argument) from a scene graph node (first argument)"
},
{
"isMaster",
&luascriptfunctions::isMaster,
{},
"",
"Returns whether the current OpenSpace instance is the master node of a "
"cluster configuration. If this instance is not part of a cluster, this "
"function also returns 'true'."
},
{
"clusterId",
&luascriptfunctions::clusterId,
{},
"Returns the zero-based identifier for this OpenSpace instance in a "
"cluster configuration. If this instance is not part of a cluster, this "
"identifier is always 0."
}
},
{