public static IXILRuntime RegisterGameStage(this IXILRuntime xil) { //跨域继承适配器 xil.RegisterCrossBindingAdaptor(new StageControllerBaseAdapter()); //CLR重定向 RedirectGameStage.Register(xil); return(xil); }
public static IXILRuntime RegisterUIKit(this IXILRuntime xil) { //跨域继承适配器 xil.RegisterCrossBindingAdaptor(new XUIBehaviourAdaptors()); //注册委托适配器 xil.DelegateManager.RegisterMethodDelegate <IUIEntity, XException>(); //CLR重定向 RedirectUIKit.Register(xil); return(xil); }
public static IXILRuntime RegisterXComponent(this IXILRuntime xil) { xil.RegisterCrossBindingAdaptor(new XBehaviourAdaptor()); return(xil); }
internal static void RegisterCrossBindingAdaptors(IXILRuntime xil) { xil.RegisterCrossBindingAdaptor(new IAsyncStateMachineClassInheritanceAdaptor()); //用于Async/await }