Skip to Main Content

BTD_Mod_Helper​.Api​.Hooks​.HookTargetAttribute


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Hooks

HookTargetAttribute Class

Specifies the target type and hook type for a method hook.

public class HookTargetAttribute : System.Attribute

Inheritance System.ObjectSystem.Attribute  HookTargetAttribute

Constructors

HookTargetAttribute(Type, EHookType) Constructor

Specifies the target type and hook type for a method hook.

public HookTargetAttribute(System.Type targetType, BTD_Mod_Helper.Api.Hooks.HookTargetAttribute.EHookType hookType);

Parameters

targetType System.Type

The ModHook type that this hook targets

hookType EHookType

The type of hook (Prefix or Postfix)

Properties

HookTargetAttribute.HookType Property

Gets the hook type indicating when the hook is applied

public BTD_Mod_Helper.Api.Hooks.HookTargetAttribute.EHookType HookType { get; }

Property Value

EHookType

HookTargetAttribute.TargetType Property

Gets the target type that this hook applies to

public System.Type TargetType { get; }

Property Value

System.Type

To learn how to download BTD Mod Helper and install mods, click here