Lua ConstEngine: Difference between revisions
From Spring
Jump to navigationJump to search
m →Engine |
Updated page with new anchorable templates |
||
| Line 2: | Line 2: | ||
= Engine = | = Engine = | ||
string | {{LuaConstant | ||
|type = string | |||
|name = Engine.version | |||
|info = <span class="note">Returns the same as `spring --sync-version`, e.g. "92"</span> | |||
}} | |||
string | {{LuaConstant | ||
|type = string | |||
|name = Engine.versionFull | |||
|info = | |||
}} | |||
{{LuaConstant | |||
|type = string | |||
|name = Engine.versionPatchSet | |||
|info = | |||
}} | |||
{{LuaConstant | |||
|type = string | |||
|name = Engine.buildFlags | |||
|info = <span class="note">(unsynced only) Gets additional engine buildflags, e.g. "OMP" or "MT-Sim DEBUG"</span> | |||
}} | |||
{{LuaConstant | |||
|type = number | |||
|name = Engine.wordSize | |||
|info = <span class="note">indicates the build type and is either 32 or 64 (or 0 in synced code)</span> | |||
}} | |||
[[category: Lua]] | [[category: Lua]] | ||
Latest revision as of 23:10, 28 February 2021
Development < Lua Scripting < Lua ConstEngine
Engine
string Engine.version
- Returns the same as `spring --sync-version`, e.g. "92"
string
Engine.versionFull
string
Engine.versionPatchSet
string
Engine.buildFlags
- (unsynced only) Gets additional engine buildflags, e.g. "OMP" or "MT-Sim DEBUG"
number
Engine.wordSize
- indicates the build type and is either 32 or 64 (or 0 in synced code)