Lua ConstEngine: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
104.0 - add Engine global tables
 
Updated page with new anchorable templates
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


= Engine =
= Engine =
string '''Engine.version''' <span class="note">Returns the same as `spring --sync-version`, e.g. "92"</span>


string '''Engine.versionFull'''
{{LuaConstant
|type = string
|name = Engine.version
|info = <span class="note">Returns the same as `spring --sync-version`, e.g. "92"</span>
}}


string '''Engine.versionPatchSet'''


string '''Engine.buildFlags'''
{{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>
}}


number '''Engine.wordSize''' <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)