class
TogglePower
- 2 properties
- 6 functions
Extends ActionBool ScriptableDeviceAction BaseScriptableAction game.device.Action red.Event IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
TrueRecordName | string | 0x280 | scripted |
FalseRecordName | string | 0x2A0 | scripted |
Functions
void SetProperties(EDeviceStatus status)RTTIre.Hooks.PlaceVoid( "TogglePower", "SetProperties;EDeviceStatus", (TogglePower_SetProperties x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct TogglePower_SetProperties( TogglePower self, EDeviceStatus status );void SetProperties(EDeviceStatus status, TDBID nameOnTrue, TDBID nameOnFalse)RTTIre.Hooks.PlaceVoid( "TogglePower", "SetProperties;EDeviceStatusTweakDBIDTweakDBID", (TogglePower_SetProperties2 x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct TogglePower_SetProperties2( TogglePower self, EDeviceStatus status, TDBID nameOnTrue, TDBID nameOnFalse );string GetTweakDBChoiceRecord()overrideRTTIre.Hooks.Place( "TogglePower", "GetTweakDBChoiceRecord;", (TogglePower_GetTweakDBChoiceRecord x) => { return re.Hooks.CallOriginal<re.msgpack.Str>(); } ); [Msgpack.Gen] public readonly partial record struct TogglePower_GetTweakDBChoiceRecord( TogglePower self );static bool IsDefaultConditionMet(ScriptableDeviceComponentPS device, game.GetActionsContext context)staticoverrideRTTI globalre.Hooks.Place( "TogglePower", "TogglePower::IsDefaultConditionMet;ScriptableDeviceComponentPSscript_ref<GetActionsContext>", (TogglePower_IsDefaultConditionMet x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct TogglePower_IsDefaultConditionMet( ScriptableDeviceComponentPS? device, game.GetActionsContext context );static bool IsAvailable(ScriptableDeviceComponentPS device)staticoverrideRTTI globalre.Hooks.Place( "TogglePower", "TogglePower::IsAvailable;ScriptableDeviceComponentPS", (TogglePower_IsAvailable x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct TogglePower_IsAvailable( ScriptableDeviceComponentPS? device );static bool IsClearanceValid(game.device.Clearance clearance)staticoverrideRTTI globalre.Hooks.Place( "TogglePower", "TogglePower::IsClearanceValid;Clearance", (TogglePower_IsClearanceValid x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct TogglePower_IsClearanceValid( game.device.Clearance? clearance );