Class: MockHangingLamp
Mock of the X-Ray engine hanging lamp object.
Extends
MockCGameObject
Implements
hanging_lamp
Constructors
Constructor
new MockHangingLamp(): MockHangingLamp;Returns
MockHangingLamp
Inherited from
MockCGameObject.constructorMethods
create()
static create(): MockHangingLamp;Returns
MockHangingLamp
Overrides
MockCGameObject.createmock()
static mock(): hanging_lamp;Returns
hanging_lamp
Overrides
MockCGameObject.mockProperties
__name
__name: string = "CGameObject";LuaBind instance constructor name.
Implementation of
hanging_lamp.__nameInherited from
MockCGameObject.__name_construct
_construct: MockedFunction<() => DLL_Pure>;Construct engine-side object state.
Remarks
Lifecycle hook used by the engine. Calling it from gameplay scripts can reinitialize native state unexpectedly.
Returns
Constructed base object.
Implementation of
hanging_lamp._constructInherited from
MockCGameObject._constructgetEnabled
getEnabled: MockedFunction<() => boolean>;Returns
Whether the object is enabled in the client object loop.
Implementation of
hanging_lamp.getEnabledInherited from
MockCGameObject.getEnabledgetVisible
getVisible: MockedFunction<() => boolean>;Returns
Whether the object is visible.
Implementation of
hanging_lamp.getVisibleInherited from
MockCGameObject.getVisiblenet_Export
net_Export: MockedFunction<(net_packet: net_packet) => void>;Export network state to a packet.
Param
net_packet
Destination network packet.
Implementation of
hanging_lamp.net_ExportInherited from
MockCGameObject.net_Exportnet_Import
net_Import: MockedFunction<(net_packet: net_packet) => void>;Import network state from a packet.
Param
net_packet
Source network packet.
Implementation of
hanging_lamp.net_ImportInherited from
MockCGameObject.net_Importnet_Spawn
net_Spawn: MockedFunction<(cse_abstract: cse_abstract) => boolean>;Spawn the client object from its server object.
Remarks
Lifecycle hook used during network spawn. Return false to reject spawn in custom subclasses.
Param
cse_abstract
Server object used for spawn data.
Returns
Whether spawn succeeded.
Implementation of
hanging_lamp.net_SpawnInherited from
MockCGameObject.net_Spawnturn_off
turn_off: Mock<UnknownFunction>;Turn the lamp off.
Implementation of
hanging_lamp.turn_offturn_on
turn_on: Mock<UnknownFunction>;Turn the lamp on.
Implementation of
hanging_lamp.turn_onuse
use: MockedFunction<(object: CGameObject) => boolean>;Use another object through the engine interaction path.
Param
object
Object being used.
Returns
Whether the use action was handled.
Implementation of
hanging_lamp.useInherited from
MockCGameObject.useVisual
Visual: MockedFunction<() => IXR_IRender_Visual>;Returns
Render visual assigned to the object.
Implementation of
hanging_lamp.VisualInherited from
MockCGameObject.Visual