C# Class RA.Initializer

Mostra file Open project: RWA-Team/RimworldAscension

Public Properties

Property Type Description
destMethods List
sourceMethods List
universalFlags BindingFlags

Public Methods

Method Description
DetourMethod ( string className, string methodName ) : void
DetourProperty ( string className, string propertyName ) : void
DoDetours ( ) : void
GetHiddenValue ( Type type, object instance, string fieldName, FieldInfo info ) : object
SetHiddenValue ( object value, Type type, object instance, string fieldName, FieldInfo info ) : void
TryDetourFromTo ( MethodInfo source, MethodInfo destination ) : bool

Private Methods

Method Description
Initializer ( ) : System

Method Details

DetourMethod() public static method

public static DetourMethod ( string className, string methodName ) : void
className string
methodName string
return void

DetourProperty() public static method

public static DetourProperty ( string className, string propertyName ) : void
className string
propertyName string
return void

DoDetours() public static method

public static DoDetours ( ) : void
return void

GetHiddenValue() public static method

public static GetHiddenValue ( Type type, object instance, string fieldName, FieldInfo info ) : object
type System.Type
instance object
fieldName string
info System.Reflection.FieldInfo
return object

SetHiddenValue() public static method

public static SetHiddenValue ( object value, Type type, object instance, string fieldName, FieldInfo info ) : void
value object
type System.Type
instance object
fieldName string
info System.Reflection.FieldInfo
return void

TryDetourFromTo() public static method

public static TryDetourFromTo ( MethodInfo source, MethodInfo destination ) : bool
source System.Reflection.MethodInfo
destination System.Reflection.MethodInfo
return bool

Property Details

destMethods public_oe static_oe property

public static List destMethods
return List

sourceMethods public_oe static_oe property

public static List sourceMethods
return List

universalFlags public_oe static_oe property

public static BindingFlags universalFlags
return BindingFlags