class
WeaponTraining
- 4 properties
- 7 functions
Extends InteractiveDevice Device game.DeviceBase game.Object ent.GameEntity ent.Entity IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
rewardRecord | TDBID | 0x3D0 | scripted |
weaponTypes | game.data.ItemType[] | 0x3D8 | scripted |
limitOfHits | int | 0x3E8 | scripted |
amountOfHits | int | 0x3EC | scripted |
Functions
bool OnRequestComponents(ent.EntityRequestComponentsInterface ri)overrideRTTIre.Hooks.Place( "WeaponTraining", "OnRequestComponents", (WeaponTraining_OnRequestComponents x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct WeaponTraining_OnRequestComponents( WeaponTraining self, ent.EntityRequestComponentsInterface ri );bool OnTakeControl(ent.EntityResolveComponentsInterface ri)overrideRTTIre.Hooks.Place( "WeaponTraining", "OnTakeControl", (WeaponTraining_OnTakeControl x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct WeaponTraining_OnTakeControl( WeaponTraining self, ent.EntityResolveComponentsInterface ri );bool OnHitEvent(game.events.HitEvent hit)overrideRTTIre.Hooks.Place( "WeaponTraining", "OnHitEvent", (WeaponTraining_OnHitEvent x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct WeaponTraining_OnHitEvent( WeaponTraining self, game.events.HitEvent? hit );bool MatchWeaponItemType(game.data.ItemType type)RTTIre.Hooks.Place( "WeaponTraining", "MatchWeaponItemType;gamedataItemType", (WeaponTraining_MatchWeaponItemType x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct WeaponTraining_MatchWeaponItemType( WeaponTraining self, game.data.ItemType type );void AwardRewardXP(WeakHandle<game.Object> instigator, ent.EntityID target)RTTIre.Hooks.PlaceVoid( "WeaponTraining", "AwardRewardXP;GameObjectEntityID", (WeaponTraining_AwardRewardXP x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct WeaponTraining_AwardRewardXP( WeaponTraining self, WeakHandle<game.Object> instigator, ent.EntityID target );bool HasAnyDirectInteractionActive()overrideRTTIre.Hooks.Place( "WeaponTraining", "HasAnyDirectInteractionActive;", (WeaponTraining_HasAnyDirectInteractionActive x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct WeaponTraining_HasAnyDirectInteractionActive( WeaponTraining self );EGameplayRole DeterminGameplayRole()overrideRTTIre.Hooks.Place( "WeaponTraining", "DeterminGameplayRole;", (WeaponTraining_DeterminGameplayRole x) => { return re.Hooks.CallOriginal<re.msgpack.EGameplayRole>(); } ); [Msgpack.Gen] public readonly partial record struct WeaponTraining_DeterminGameplayRole( WeaponTraining self );