class
ElectricLight
- 2 properties
- 21 functions
- 1 derived class
Extends Device game.DeviceBase game.Object ent.GameEntity ent.Entity IScriptable ISerializable
Derived
Properties
| Property | Type | Offset | |
|---|---|---|---|
lightComponents | game.LightComponent?[] | 0x350 | scripted |
lightDefinitions | game.data.LightPreset[] | 0x360 | scripted |
Functions
bool OnRequestComponents(ent.EntityRequestComponentsInterface ri)overrideRTTIre.Hooks.Place( "ElectricLight", "OnRequestComponents", (ElectricLight_OnRequestComponents x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_OnRequestComponents( ElectricLight self, ent.EntityRequestComponentsInterface ri );bool OnTakeControl(ent.EntityResolveComponentsInterface ri)overrideRTTIre.Hooks.Place( "ElectricLight", "OnTakeControl", (ElectricLight_OnTakeControl x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_OnTakeControl( ElectricLight self, ent.EntityResolveComponentsInterface ri );ElectricLightController? GetController()overrideRTTIre.Hooks.Place( "ElectricLight", "GetController;", (ElectricLight_GetController x) => { return re.Hooks.CallOriginal<re.msgpack.ElectricLightController>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_GetController( ElectricLight self );ElectricLightControllerPS? GetDevicePS()overrideRTTIre.Hooks.Place( "ElectricLight", "GetDevicePS;", (ElectricLight_GetDevicePS x) => { return re.Hooks.CallOriginal<re.msgpack.ElectricLightControllerPS>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_GetDevicePS( ElectricLight self );bool ShouldRegisterToHUD()overrideRTTIre.Hooks.Place( "ElectricLight", "ShouldRegisterToHUD;", (ElectricLight_ShouldRegisterToHUD x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_ShouldRegisterToHUD( ElectricLight self );void ApplyPreset(game.LightComponent light, TDBID preset)RTTIre.Hooks.PlaceVoid( "ElectricLight", "ApplyPreset;gameLightComponentTweakDBID", (ElectricLight_ApplyPreset x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_ApplyPreset( ElectricLight self, game.LightComponent? light, TDBID preset );bool CreateColorFromIntArray(int[] ints, out Color color)RTTIre.Hooks.Place( "ElectricLight", "CreateColorFromIntArray;script_ref<array<Int32>>Color", (ElectricLight_CreateColorFromIntArray x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_CreateColorFromIntArray( ElectricLight self, int[] ints, Color color );void CutPower()overrideRTTIre.Hooks.PlaceVoid( "ElectricLight", "CutPower;", (ElectricLight_CutPower x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_CutPower( ElectricLight self );void RestorePower()overrideRTTIre.Hooks.PlaceVoid( "ElectricLight", "RestorePower;", (ElectricLight_RestorePower x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_RestorePower( ElectricLight self );void TurnOnDevice()overrideRTTIre.Hooks.PlaceVoid( "ElectricLight", "TurnOnDevice;", (ElectricLight_TurnOnDevice x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_TurnOnDevice( ElectricLight self );void TurnOffDevice()overrideRTTIre.Hooks.PlaceVoid( "ElectricLight", "TurnOffDevice;", (ElectricLight_TurnOffDevice x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_TurnOffDevice( ElectricLight self );void TurnOnLights()RTTIre.Hooks.PlaceVoid( "ElectricLight", "TurnOnLights;", (ElectricLight_TurnOnLights x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_TurnOnLights( ElectricLight self );void TurnOffLights()RTTIre.Hooks.PlaceVoid( "ElectricLight", "TurnOffLights;", (ElectricLight_TurnOffLights x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_TurnOffLights( ElectricLight self );bool OnHitEvent(game.events.HitEvent hit)overrideRTTIre.Hooks.Place( "ElectricLight", "OnHitEvent", (ElectricLight_OnHitEvent x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_OnHitEvent( ElectricLight self, game.events.HitEvent? hit );void ReactToHit(game.events.HitEvent hit)overrideRTTIre.Hooks.PlaceVoid( "ElectricLight", "ReactToHit;gameHitEvent", (ElectricLight_ReactToHit x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_ReactToHit( ElectricLight self, game.events.HitEvent? hit );bool OnEMPHitEvent(EMPHitEvent evt)RTTIre.Hooks.Place( "ElectricLight", "OnEMPHitEvent", (ElectricLight_OnEMPHitEvent x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_OnEMPHitEvent( ElectricLight self, EMPHitEvent? evt );bool OnEMPEnded(EMPEnded evt)RTTIre.Hooks.Place( "ElectricLight", "OnEMPEnded", (ElectricLight_OnEMPEnded x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_OnEMPEnded( ElectricLight self, EMPEnded? evt );bool OnPhysicalDestructionEvent(ent.PhysicalDestructionEvent evt)overrideRTTIre.Hooks.Place( "ElectricLight", "OnPhysicalDestructionEvent", (ElectricLight_OnPhysicalDestructionEvent x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_OnPhysicalDestructionEvent( ElectricLight self, ent.PhysicalDestructionEvent? evt );bool IncludeLightsInVisibilityBoundsScript()overrideRTTIre.Hooks.Place( "ElectricLight", "IncludeLightsInVisibilityBoundsScript;", (ElectricLight_IncludeLightsInVisibilityBoundsScript x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_IncludeLightsInVisibilityBoundsScript( ElectricLight self );bool IsGameplayRelevant()overrideRTTIre.Hooks.Place( "ElectricLight", "IsGameplayRelevant;", (ElectricLight_IsGameplayRelevant x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_IsGameplayRelevant( ElectricLight self );bool ShouldSendGameAttachedEventToPS()overrideRTTIre.Hooks.Place( "ElectricLight", "ShouldSendGameAttachedEventToPS;", (ElectricLight_ShouldSendGameAttachedEventToPS x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct ElectricLight_ShouldSendGameAttachedEventToPS( ElectricLight self );