Module content.scripts.gamescript🔗
global record ArriveAtStop
vehicleEntity: Engine.Entity lineEntity: Engine.Entity stopIndex: integer lastStopIndex: integer endglobal record CalcTicketPriceCargoEvent
vehicleEntity: Engine.Entity lineEntity: Engine.Entity simEntity: Engine.Entity stockListEntity: Engine.Entity basePrice: number distance: number endglobal record CalcTicketPriceEvent
vehicleEntity: Engine.Entity lineEntity: Engine.Entity simEntity: Engine.Entity basePrice: number distance: number endglobal record GameScript<T>
update: function({<any type> : <any type>}, GameScriptState<T>, number): any postUpdate: function({<any type> : <any type>}, GameScriptState<T>, number, any) handleEvent: function({<any type> : <any type>}, GameScriptState<T>, string, string, string, any): any endglobal record GameScriptState<T>
get: function(GameScriptState<T>): T get_native: function(GameScriptState<T>): NativeLuaTable set: function(GameScriptState<T>, T) set_native: function(GameScriptState<T>, NativeLuaTable) hasEventSubscriptions: function(GameScriptState<T>): boolean subscribeToAllEvents: function(GameScriptState<T>) subscribeToNoEvents: function(GameScriptState<T>) subscribeToEvent: function(GameScriptState<T>, string) endglobal record GameScriptWithGui<StateT, GuiStateT>
update: function({<any type> : <any type>}, GameScriptState<StateT>, number): any postUpdate: function({<any type> : <any type>}, GameScriptState<StateT>, number, any) handleEvent: function({<any type> : <any type>}, GameScriptState<StateT>, string, string, string, any): any guiUpdate: function({<any type> : <any type>}, GameScriptStateReadOnly<StateT>, GameScriptState<GuiStateT>) guiHandleEvent: function({<any type> : <any type>}, GameScriptStateReadOnly<StateT>, GameScriptState<GuiStateT>, string, string, string, any): any end
Category: globals🔗
ArriveAtStop🔗
global record ArriveAtStop
vehicleEntity: Engine.Entity lineEntity: Engine.Entity stopIndex: integer lastStopIndex: integer end
ArriveAtStop.vehicleEntity🔗
ArriveAtStop.vehicleEntity: Engine.Entity
ArriveAtStop.lineEntity🔗
ArriveAtStop.lineEntity: Engine.Entity
ArriveAtStop.stopIndex🔗
ArriveAtStop.stopIndex: integer
ArriveAtStop.lastStopIndex🔗
ArriveAtStop.lastStopIndex: integer
CalcTicketPriceCargoEvent🔗
global record CalcTicketPriceCargoEvent
vehicleEntity: Engine.Entity lineEntity: Engine.Entity simEntity: Engine.Entity stockListEntity: Engine.Entity basePrice: number distance: number end
CalcTicketPriceCargoEvent.vehicleEntity🔗
CalcTicketPriceCargoEvent.vehicleEntity: Engine.Entity
CalcTicketPriceCargoEvent.lineEntity🔗
CalcTicketPriceCargoEvent.lineEntity: Engine.Entity
CalcTicketPriceCargoEvent.simEntity🔗
CalcTicketPriceCargoEvent.simEntity: Engine.Entity
CalcTicketPriceCargoEvent.stockListEntity🔗
CalcTicketPriceCargoEvent.stockListEntity: Engine.Entity
CalcTicketPriceCargoEvent.basePrice🔗
CalcTicketPriceCargoEvent.basePrice: number
CalcTicketPriceCargoEvent.distance🔗
CalcTicketPriceCargoEvent.distance: number
CalcTicketPriceEvent🔗
global record CalcTicketPriceEvent
vehicleEntity: Engine.Entity lineEntity: Engine.Entity simEntity: Engine.Entity basePrice: number distance: number end
CalcTicketPriceEvent.vehicleEntity🔗
CalcTicketPriceEvent.vehicleEntity: Engine.Entity
CalcTicketPriceEvent.lineEntity🔗
CalcTicketPriceEvent.lineEntity: Engine.Entity
CalcTicketPriceEvent.simEntity🔗
CalcTicketPriceEvent.simEntity: Engine.Entity
CalcTicketPriceEvent.basePrice🔗
CalcTicketPriceEvent.basePrice: number
CalcTicketPriceEvent.distance🔗
CalcTicketPriceEvent.distance: number
EventData🔗
Type Parameters
TU
EventData.param🔗
EventData.param: T
EventData.result🔗
EventData.result: U
GameScript🔗
global record GameScript<T>
update: function({<any type> : <any type>}, GameScriptState<T>, number): any postUpdate: function({<any type> : <any type>}, GameScriptState<T>, number, any) handleEvent: function({<any type> : <any type>}, GameScriptState<T>, string, string, string, any): any end
Type Parameters
T
GameScript.update🔗
function GameScript.update({<any type> : <any type>}, GameScriptState<T>, number): anyParameters
{<any type> : <any type>}GameScriptState<T>number
any
GameScript.postUpdate🔗
function GameScript.postUpdate({<any type> : <any type>}, GameScriptState<T>, number, any)Parameters
{<any type> : <any type>}GameScriptState<T>numberany
GameScript.handleEvent🔗
function GameScript.handleEvent({<any type> : <any type>}, GameScriptState<T>, string, string, string, any): anyParameters
{<any type> : <any type>}GameScriptState<T>stringstringstringany
any
GameScriptState🔗
global record GameScriptState<T>
get: function(GameScriptState<T>): T get_native: function(GameScriptState<T>): NativeLuaTable set: function(GameScriptState<T>, T) set_native: function(GameScriptState<T>, NativeLuaTable) hasEventSubscriptions: function(GameScriptState<T>): boolean subscribeToAllEvents: function(GameScriptState<T>) subscribeToNoEvents: function(GameScriptState<T>) subscribeToEvent: function(GameScriptState<T>, string) end
Type Parameters
T
GameScriptState.get🔗
function GameScriptState.get(GameScriptState<T>): TParameters
GameScriptState<T>
T
GameScriptState.get_native🔗
function GameScriptState.get_native(GameScriptState<T>): NativeLuaTableParameters
GameScriptState<T>
NativeLuaTable
GameScriptState.set🔗
function GameScriptState.set(GameScriptState<T>, T)Parameters
GameScriptState<T>T
GameScriptState.set_native🔗
function GameScriptState.set_native(GameScriptState<T>, NativeLuaTable)Parameters
GameScriptState<T>NativeLuaTable
GameScriptState.hasEventSubscriptions🔗
function GameScriptState.hasEventSubscriptions(GameScriptState<T>): booleanParameters
GameScriptState<T>
boolean
GameScriptState.subscribeToAllEvents🔗
function GameScriptState.subscribeToAllEvents(GameScriptState<T>)Parameters
GameScriptState<T>
GameScriptState.subscribeToNoEvents🔗
function GameScriptState.subscribeToNoEvents(GameScriptState<T>)Parameters
GameScriptState<T>
GameScriptState.subscribeToEvent🔗
function GameScriptState.subscribeToEvent(GameScriptState<T>, string)Parameters
GameScriptState<T>string
GameScriptStateReadOnly🔗
Type Parameters
T
GameScriptStateReadOnly.get🔗
function GameScriptStateReadOnly.get(GameScriptStateReadOnly<T>): TParameters
GameScriptStateReadOnly<T>
T
GameScriptWithGui🔗
global record GameScriptWithGui<StateT, GuiStateT>
update: function({<any type> : <any type>}, GameScriptState<StateT>, number): any postUpdate: function({<any type> : <any type>}, GameScriptState<StateT>, number, any) handleEvent: function({<any type> : <any type>}, GameScriptState<StateT>, string, string, string, any): any guiUpdate: function({<any type> : <any type>}, GameScriptStateReadOnly<StateT>, GameScriptState<GuiStateT>) guiHandleEvent: function({<any type> : <any type>}, GameScriptStateReadOnly<StateT>, GameScriptState<GuiStateT>, string, string, string, any): any end
Type Parameters
StateTGuiStateT
GameScriptWithGui.update🔗
function GameScriptWithGui.update({<any type> : <any type>}, GameScriptState<StateT>, number): anyParameters
{<any type> : <any type>}GameScriptState<StateT>number
any
GameScriptWithGui.postUpdate🔗
function GameScriptWithGui.postUpdate({<any type> : <any type>}, GameScriptState<StateT>, number, any)Parameters
{<any type> : <any type>}GameScriptState<StateT>numberany
GameScriptWithGui.handleEvent🔗
function GameScriptWithGui.handleEvent({<any type> : <any type>}, GameScriptState<StateT>, string, string, string, any): anyParameters
{<any type> : <any type>}GameScriptState<StateT>stringstringstringany
any
GameScriptWithGui.guiUpdate🔗
function GameScriptWithGui.guiUpdate({<any type> : <any type>}, GameScriptStateReadOnly<StateT>, GameScriptState<GuiStateT>)Parameters
{<any type> : <any type>}GameScriptStateReadOnly<StateT>GameScriptState<GuiStateT>
GameScriptWithGui.guiHandleEvent🔗
function GameScriptWithGui.guiHandleEvent({<any type> : <any type>}, GameScriptStateReadOnly<StateT>, GameScriptState<GuiStateT>, string, string, string, any): anyParameters
{<any type> : <any type>}GameScriptStateReadOnly<StateT>GameScriptState<GuiStateT>stringstringstringany
any
StartedLineUsage🔗
StartedLineUsage.entities🔗
StartedLineUsage.entities: {{Engine.Entity, Engine.Entity}}