using System; using System.Collections.Generic; using System.Reflection; using TinaX.UIKit; using TinaX.UIKit.Internal.Adaptor; using TinaXEditor.XILRuntime; namespace TinaXEditor.UIKit.XILRuntime.Generator { public class UIKitCLRGenerateDefine : ICLRGenerateDefine { public void GenerateByAssemblies_InitILRuntime(ILRuntime.Runtime.Enviorment.AppDomain appdomain) { //注册跨域 appdomain.RegisterCrossBindingAdaptor(new XUIBehaviourAdaptors()); } /// /// 生成CLR绑定代码的列表 /// /// public List GetCLRBindingTypes() => new List { typeof(IUIKit), typeof(TinaX.UIKit.UIKit), typeof(IUIEntity), typeof(UIPage), }; public HashSet GetCLRBindingExcludeFields() => null; public HashSet GetCLRBindingExcludeMethods() => null; public List GetDelegateTypes() => null; public List GetValueTypeBinders() => null; } }