C# 클래스 ExtraLanscapingToolsCommon.Redirection.RedirectionHelper

Helper class to deal with detours. This version is for Unity 5 x64 on Windows. We provide three different methods of detouring.
파일 보기 프로젝트 열기: earalov/Skylines-NaturalResourcesBrush 1 사용 예제들

공개 메소드들

메소드 설명
RedirectCalls ( MethodInfo from, MethodInfo to ) : RedirectCallsState

Redirects all calls from method 'from' to method 'to'.

RevertRedirect ( MethodInfo from, RedirectCallsState state ) : void

비공개 메소드들

메소드 설명
PatchJumpTo ( IntPtr site, IntPtr target ) : RedirectCallsState

Primitive patching. Inserts a jump to 'target' at 'site'. Works even if both methods' callers have already been compiled.

RevertJumpTo ( IntPtr site, RedirectCallsState state ) : void

메소드 상세

RedirectCalls() 공개 정적인 메소드

Redirects all calls from method 'from' to method 'to'.
public static RedirectCalls ( MethodInfo from, MethodInfo to ) : RedirectCallsState
from System.Reflection.MethodInfo
to System.Reflection.MethodInfo
리턴 RedirectCallsState

RevertRedirect() 공개 정적인 메소드

public static RevertRedirect ( MethodInfo from, RedirectCallsState state ) : void
from System.Reflection.MethodInfo
state RedirectCallsState
리턴 void