Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.LuaCsHook Class Reference

Classes

class  ParameterTable
 

Public Types

enum  HookMethodType { Before , After }
 

Public Member Functions

void Initialize ()
 
void Add (string name, LuaCsFunc func, ACsMod owner=null)
 
void Add (string name, string identifier, LuaCsFunc func, ACsMod owner=null)
 
bool Exists (string name, string identifier)
 
void Remove (string name, string identifier)
 
void Clear ()
 
Call< T > (string name, params object[] args)
 
object Call (string name, params object[] args)
 
string Patch (string identifier, string className, string methodName, string[] parameterTypes, LuaCsPatchFunc patch, HookMethodType hookType=HookMethodType.Before)
 
string Patch (string identifier, string className, string methodName, LuaCsPatchFunc patch, HookMethodType hookType=HookMethodType.Before)
 
string Patch (string className, string methodName, string[] parameterTypes, LuaCsPatchFunc patch, HookMethodType hookType=HookMethodType.Before)
 
string Patch (string className, string methodName, LuaCsPatchFunc patch, HookMethodType hookType=HookMethodType.Before)
 
bool RemovePatch (string identifier, string className, string methodName, string[] parameterTypes, HookMethodType hookType)
 
bool RemovePatch (string identifier, string className, string methodName, HookMethodType hookType)
 
void HookMethod (string identifier, MethodBase method, LuaCsCompatPatchFunc patch, HookMethodType hookType=HookMethodType.Before, ACsMod owner=null)
 
void UnhookMethod (string identifier, MethodBase method, HookMethodType hookType=HookMethodType.Before)
 

Protected Member Functions

void HookMethod (string identifier, string className, string methodName, string[] parameterNames, LuaCsCompatPatchFunc patch, HookMethodType hookMethodType=HookMethodType.Before)
 
void HookMethod (string identifier, string className, string methodName, LuaCsCompatPatchFunc patch, HookMethodType hookMethodType=HookMethodType.Before)
 
void HookMethod (string className, string methodName, LuaCsCompatPatchFunc patch, HookMethodType hookMethodType=HookMethodType.Before)
 
void HookMethod (string className, string methodName, string[] parameterNames, LuaCsCompatPatchFunc patch, HookMethodType hookMethodType=HookMethodType.Before)
 
void UnhookMethod (string identifier, string className, string methodName, string[] parameterNames, HookMethodType hookType=HookMethodType.Before)
 

Member Enumeration Documentation

◆ HookMethodType

Enumerator
Before 
After 

Member Function Documentation

◆ Add() [1/2]

void Barotrauma.LuaCsHook.Add ( string name,
LuaCsFunc func,
ACsMod owner = null )

◆ Add() [2/2]

void Barotrauma.LuaCsHook.Add ( string name,
string identifier,
LuaCsFunc func,
ACsMod owner = null )

◆ Call()

object Barotrauma.LuaCsHook.Call ( string name,
params object[] args )

◆ Call< T >()

T Barotrauma.LuaCsHook.Call< T > ( string name,
params object[] args )

◆ Clear()

void Barotrauma.LuaCsHook.Clear ( )

◆ Exists()

bool Barotrauma.LuaCsHook.Exists ( string name,
string identifier )

◆ HookMethod() [1/5]

void Barotrauma.LuaCsHook.HookMethod ( string className,
string methodName,
LuaCsCompatPatchFunc patch,
HookMethodType hookMethodType = HookMethodType.Before )
protected

◆ HookMethod() [2/5]

void Barotrauma.LuaCsHook.HookMethod ( string className,
string methodName,
string[] parameterNames,
LuaCsCompatPatchFunc patch,
HookMethodType hookMethodType = HookMethodType.Before )
protected

◆ HookMethod() [3/5]

void Barotrauma.LuaCsHook.HookMethod ( string identifier,
MethodBase method,
LuaCsCompatPatchFunc patch,
HookMethodType hookType = HookMethodType::Before,
ACsMod owner = null )

◆ HookMethod() [4/5]

void Barotrauma.LuaCsHook.HookMethod ( string identifier,
string className,
string methodName,
LuaCsCompatPatchFunc patch,
HookMethodType hookMethodType = HookMethodType.Before )
protected

◆ HookMethod() [5/5]

void Barotrauma.LuaCsHook.HookMethod ( string identifier,
string className,
string methodName,
string[] parameterNames,
LuaCsCompatPatchFunc patch,
HookMethodType hookMethodType = HookMethodType::Before )
protected

◆ Initialize()

void Barotrauma.LuaCsHook.Initialize ( )

◆ Patch() [1/4]

string Barotrauma.LuaCsHook.Patch ( string className,
string methodName,
LuaCsPatchFunc patch,
HookMethodType hookType = HookMethodType::Before )

◆ Patch() [2/4]

string Barotrauma.LuaCsHook.Patch ( string className,
string methodName,
string[] parameterTypes,
LuaCsPatchFunc patch,
HookMethodType hookType = HookMethodType::Before )

◆ Patch() [3/4]

string Barotrauma.LuaCsHook.Patch ( string identifier,
string className,
string methodName,
LuaCsPatchFunc patch,
HookMethodType hookType = HookMethodType::Before )

◆ Patch() [4/4]

string Barotrauma.LuaCsHook.Patch ( string identifier,
string className,
string methodName,
string[] parameterTypes,
LuaCsPatchFunc patch,
HookMethodType hookType = HookMethodType::Before )

◆ Remove()

void Barotrauma.LuaCsHook.Remove ( string name,
string identifier )

◆ RemovePatch() [1/2]

bool Barotrauma.LuaCsHook.RemovePatch ( string identifier,
string className,
string methodName,
HookMethodType hookType )

◆ RemovePatch() [2/2]

bool Barotrauma.LuaCsHook.RemovePatch ( string identifier,
string className,
string methodName,
string[] parameterTypes,
HookMethodType hookType )

◆ UnhookMethod() [1/2]

void Barotrauma.LuaCsHook.UnhookMethod ( string identifier,
MethodBase method,
HookMethodType hookType = HookMethodType::Before )

◆ UnhookMethod() [2/2]

void Barotrauma.LuaCsHook.UnhookMethod ( string identifier,
string className,
string methodName,
string[] parameterNames,
HookMethodType hookType = HookMethodType::Before )
protected

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