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

Public Member Functions

 GlobalHookList (LoaderUtils.MethodOverrideQuery< TGlobal > hook)
 
 GlobalHookList (MethodInfo method)
 
ReadOnlySpan< TGlobal > Enumerate ()
 
EntityGlobalsEnumerator< TGlobal > Enumerate (IEntityWithGlobals< TGlobal > entity)
 
ReadOnlySpan< TGlobal > Enumerate (int type)
 
void Update ()
 

Static Public Member Functions

static GlobalHookList< TGlobal > Create (Expression< Func< TGlobal, Delegate > > expr)
 
static GlobalHookList< TGlobal > Create< F > (Expression< Func< TGlobal, F > > expr)
 

Properties

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

Member Function Documentation

◆ Create< F >()

static GlobalHookList< TGlobal > GlobalHookList< TGlobal >.Create< F > ( Expression< Func< TGlobal, F > >  expr)
static

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