class
NPCTypePrereq
- 2 properties
- 3 functions
Extends game.IScriptablePrereq game.IPrereq IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
allowedTypes | game.data.NPCType[] | 0x0 | scripted |
invert | bool | 0x10 | scripted |
Functions
void Initialize(TDBID recordID)overrideRTTIre.Hooks.PlaceVoid( "NPCTypePrereq", "Initialize;TweakDBID", (NPCTypePrereq_Initialize x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct NPCTypePrereq_Initialize( NPCTypePrereq self, TDBID recordID );void OnApplied(game.PrereqState state, ScriptGameInstance game, IScriptable context)overrideRTTIre.Hooks.PlaceVoid( "NPCTypePrereq", "OnApplied;PrereqStateGameInstanceIScriptable", (NPCTypePrereq_OnApplied x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct NPCTypePrereq_OnApplied( NPCTypePrereq self, game.PrereqState? state, ScriptGameInstance game, IScriptable? context );bool IsFulfilled(ScriptGameInstance game, IScriptable context)overrideRTTIre.Hooks.Place( "NPCTypePrereq", "IsFulfilled", (NPCTypePrereq_IsFulfilled x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct NPCTypePrereq_IsFulfilled( NPCTypePrereq self, ScriptGameInstance game, IScriptable? context );