Class: MockCZoneCampfire
Mock of the X-Ray engine campfire object.
Extends
MockCGameObject
Implements
CZoneCampfire
Constructors
Constructor
new MockCZoneCampfire(state?: boolean): MockCZoneCampfire;Parameters
| Parameter | Type | Default value |
|---|---|---|
state | boolean | false |
Returns
MockCZoneCampfire
Overrides
MockCGameObject.constructorMethods
create()
static create(state?: boolean): MockCZoneCampfire;Parameters
| Parameter | Type | Default value |
|---|---|---|
state | boolean | false |
Returns
MockCZoneCampfire
Overrides
MockCGameObject.createmock()
static mock(state?: boolean): CZoneCampfire;Parameters
| Parameter | Type | Default value |
|---|---|---|
state | boolean | false |
Returns
CZoneCampfire
Overrides
MockCGameObject.mockProperties
__name
__name: string = "CGameObject";LuaBind instance constructor name.
Implementation of
CZoneCampfire.__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
CZoneCampfire._constructInherited from
MockCGameObject._constructgetEnabled
getEnabled: MockedFunction<() => boolean>;Returns
Whether the object is enabled in the client object loop.
Implementation of
CZoneCampfire.getEnabledInherited from
MockCGameObject.getEnabledgetVisible
getVisible: MockedFunction<() => boolean>;Returns
Whether the object is visible.
Implementation of
CZoneCampfire.getVisibleInherited from
MockCGameObject.getVisibleis_on
is_on: Mock<() => boolean>;Returns
Whether the campfire is currently burning.
Implementation of
CZoneCampfire.is_onnet_Export
net_Export: MockedFunction<(net_packet: net_packet) => void>;Export network state to a packet.
Param
net_packet
Destination network packet.
Implementation of
CZoneCampfire.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
CZoneCampfire.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
CZoneCampfire.net_SpawnInherited from
MockCGameObject.net_Spawnstate
state: boolean;turn_off
turn_off: Mock<() => void>;Switch the campfire into its disabled state and stop native idle effects.
Implementation of
CZoneCampfire.turn_offturn_on
turn_on: Mock<() => void>;Switch the campfire into its enabled state and start native idle effects.
Implementation of
CZoneCampfire.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
CZoneCampfire.useInherited from
MockCGameObject.useVisual
Visual: MockedFunction<() => IXR_IRender_Visual>;Returns
Render visual assigned to the object.
Implementation of
CZoneCampfire.VisualInherited from
MockCGameObject.Visual