tModLoader v2024.09
A mod to make and play Terraria mods
HookList< T > Class Template Reference

Public Member Functions

 HookList (LoaderUtils.MethodOverrideQuery< T > hook)
 
 HookList (MethodInfo method)
 
ReadOnlySpan< T > Enumerate ()
 
FilteredSpanEnumerator< T > Enumerate (IEntityWithInstances< T > entity)
 
FilteredSpanEnumerator< T > Enumerate (ReadOnlySpan< T > instances)
 
FilteredArrayEnumerator< T > Enumerate (T[] instances)
 
IEnumerable< T > EnumerateSlow (IReadOnlyList< T > instances)
 
void Update (IReadOnlyList< T > allDefaultInstances)
 

Static Public Member Functions

static HookList< T > Create (Expression< Func< T, Delegate > > expr)
 
static HookList< T > Create< F > (Expression< Func< T, F > > expr)
 

Properties

LoaderUtils.MethodOverrideQuery< T > HookOverrideQuery [get]
 
MethodInfo Method [get]
 

Member Function Documentation

◆ Create< F >()

static HookList< T > HookList< T >.Create< F > ( Expression< Func< T, F > >  expr)
static

Type Constraints
F :Delegate 
F :new 
F :expr.ToOverrideQuery()