class
SimpleSwitch
- 2 properties
- 10 functions
Extends InteractiveMasterDevice InteractiveDevice Device game.DeviceBase game.Object ent.GameEntity ent.Entity IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
animationType | EAnimationType | 0x3D0 | scripted |
animationSpeed | float | 0x3D4 | scripted |
Functions
bool OnRequestComponents(ent.EntityRequestComponentsInterface ri)overrideRTTIre.Hooks.Place( "SimpleSwitch", "OnRequestComponents", (SimpleSwitch_OnRequestComponents x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_OnRequestComponents( SimpleSwitch self, ent.EntityRequestComponentsInterface ri );bool OnTakeControl(ent.EntityResolveComponentsInterface ri)overrideRTTIre.Hooks.Place( "SimpleSwitch", "OnTakeControl", (SimpleSwitch_OnTakeControl x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_OnTakeControl( SimpleSwitch self, ent.EntityResolveComponentsInterface ri );SimpleSwitchController? GetController()overrideRTTIre.Hooks.Place( "SimpleSwitch", "GetController;", (SimpleSwitch_GetController x) => { return re.Hooks.CallOriginal<re.msgpack.SimpleSwitchController>(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_GetController( SimpleSwitch self );SimpleSwitchControllerPS? GetDevicePS()overrideRTTIre.Hooks.Place( "SimpleSwitch", "GetDevicePS;", (SimpleSwitch_GetDevicePS x) => { return re.Hooks.CallOriginal<re.msgpack.SimpleSwitchControllerPS>(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_GetDevicePS( SimpleSwitch self );void TurnOnDevice()overrideRTTIre.Hooks.PlaceVoid( "SimpleSwitch", "TurnOnDevice;", (SimpleSwitch_TurnOnDevice x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_TurnOnDevice( SimpleSwitch self );void TurnOffDevice()overrideRTTIre.Hooks.PlaceVoid( "SimpleSwitch", "TurnOffDevice;", (SimpleSwitch_TurnOffDevice x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_TurnOffDevice( SimpleSwitch self );void SetDiodeAppearance(bool on)RTTIre.Hooks.PlaceVoid( "SimpleSwitch", "SetDiodeAppearance;Bool", (SimpleSwitch_SetDiodeAppearance x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_SetDiodeAppearance( SimpleSwitch self, bool on );void PlayAnimation(CName id)RTTIre.Hooks.PlaceVoid( "SimpleSwitch", "PlayAnimation;CName", (SimpleSwitch_PlayAnimation x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_PlayAnimation( SimpleSwitch self, CName id );void TurnOnLights()RTTIre.Hooks.PlaceVoid( "SimpleSwitch", "TurnOnLights;", (SimpleSwitch_TurnOnLights x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_TurnOnLights( SimpleSwitch self );EGameplayRole DeterminGameplayRole()overrideRTTIre.Hooks.Place( "SimpleSwitch", "DeterminGameplayRole;", (SimpleSwitch_DeterminGameplayRole x) => { return re.Hooks.CallOriginal<re.msgpack.EGameplayRole>(); } ); [Msgpack.Gen] public readonly partial record struct SimpleSwitch_DeterminGameplayRole( SimpleSwitch self );