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

Classes

struct  InstanceEnumerator
 

Public Member Functions

 HookList (MethodInfo method)
 
InstanceEnumerator Enumerate (Instanced< T >[] instances)
 
FilteredSpanEnumerator< T > Enumerate (List< T > instances)
 
FilteredSpanEnumerator< T > Enumerate (ReadOnlySpan< T > instances)
 
FilteredArrayEnumerator< T > Enumerate (T[] instances)
 
void Update< U > (IList< U > instances)
 

Static Public Member Functions

static HookList< T > Create< F > (Expression< Func< T, F > > expr)
 
static FilteredSpanEnumerator< T > Enumerate< T > (this HookList< T > hookList, IEntityWithInstances< T > entity)
 
static HookList< U >.InstanceEnumerator Enumerate< U > (this HookList< U > hookList, IEntityWithGlobals< U > entity)
 

Public Attributes

readonly MethodInfo method
 

Member Function Documentation

◆ Create< F >()

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

◆ Enumerate< T >()

static FilteredSpanEnumerator< T > Terraria.ModLoader.Core.HookList< T >.Enumerate< T > ( this HookList< T >  hookList,
IEntityWithInstances< T >  entity 
)
static
Type Constraints
T :class 
T :IIndexed 
T :hookList.Enumerate 
T :entity.Instances 

◆ Enumerate< U >()

static HookList< U >.InstanceEnumerator Terraria.ModLoader.Core.HookList< T >.Enumerate< U > ( this HookList< U >  hookList,
IEntityWithGlobals< U >  entity 
)
static
Type Constraints
U :GlobalType 
U :hookList.Enumerate 
U :entity.Globals.array 

◆ Update< U >()

void Terraria.ModLoader.Core.HookList< T >.Update< U > ( IList< U >  instances)
Type Constraints
U :IIndexed