![]() |
tModLoader v2024.07
A mod to make and play Terraria mods
|
Static Public Member Functions | |
static void | Add (MethodBase method, Delegate hookDelegate) |
Adds a hook (implemented by hookDelegate ) to method . More... | |
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 More... | |
static void | DumpILHooks () |
Dumps the list of currently registered IL hooks to the console. Useful for checking if a hook has been correctly added. More... | |
static void | DumpOnHooks () |
Dumps the list of currently registered On hooks to the console. Useful for checking if a hook has been correctly added. More... | |
static void | Modify (MethodBase method, ILContext.Manipulator callback) |
Adds an IL hook (implemented by callback ) to method . More... | |
static void | RequestNativeAccess () |
|
static |
Adds a hook (implemented by hookDelegate ) to method .
method | The method to hook. |
hookDelegate | The hook delegate to use. |
|
static |
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
mod | |
il |
|
static |
Dumps the list of currently registered IL hooks to the console. Useful for checking if a hook has been correctly added.
Exception |
|
static |
Dumps the list of currently registered On hooks to the console. Useful for checking if a hook has been correctly added.
Exception |
|
static |
Adds an IL hook (implemented by callback ) to method .
method | The method to hook. |
callback | The hook delegate to use. |