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

Public Member Functions

 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< F > (Expression< Func< T, F > > expr)

Public Attributes

readonly MethodInfo method

Member Function Documentation

◆ Create< F >()

static HookList< T > HookList< T >.Create< F > ( Expression< Func< T, F > >  expr)
Type Constraints
F :Delegate 
F :new 
F :expr.ToMethodInfo()