TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.MonoModHooks Class Reference
+ Collaboration diagram for Terraria.ModLoader.MonoModHooks:

Classes

class  DetourList
 

Static Public Member Functions

static void RequestNativeAccess ()
 
static void Add (MethodBase method, Delegate hookDelegate)
 Adds a hook (implemented by hookDelegate ) to method .
 
static void Modify (MethodBase method, Manipulator callback)
 
static void DumpILHooks ()
 Dumps the list of currently registered IL hooks to the console. Useful for checking if a hook has been correctly added.
 
static void DumpOnHooks ()
 Dumps the list of currently registered On hooks to the console. Useful for checking if a hook has been correctly added.
 
static void DumpIL (Mod mod, ILContext il)
 Dumps the information about the given ILContext to a file in Logs/ILDumps/{Mod Name}/{Method Name}.txt
It may be useful to use a tool such as to compare the IL before and after edits.
 

Static Package Functions

static void Initialize ()
 
static void RemoveAll (Mod mod)
 
static void Clear ()
 

Static Private Member Functions

static DetourList GetDetourList (Assembly asm)
 
static string StringRep (MethodBase m)
 

Static Private Attributes

static Dictionary< Type, string > defaultAliases
 
static Dictionary< Assembly, DetourListassemblyDetours = new Dictionary<Assembly, DetourList>()
 
static bool isInitialized
 
static ConcurrentDictionary<(MethodBase, Delegate), IDisposable > _hookCache = new ConcurrentDictionary<(MethodBase, Delegate), IDisposable>()
 
const string HookAlreadyAppliedMsg = "Delegate has already been applied to this method as a hook!"
 

Detailed Description

Definition at line 18 of file MonoModHooks.cs.


The documentation for this class was generated from the following file: