Assets/ILRuntime/Editor/ILRuntimeCrossBinding.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Assets/ILRuntime/Src/ILBehaviourProxy.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Assets/ILRuntime/Src/Inheritance/IConfigPostProcessAdapter.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Assets/ILRuntime/Src/Inheritance/IConfigPostProcessAdapter.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Assets/ILRuntime/Editor/ILRuntimeCrossBinding.cs
@@ -11,7 +11,7 @@ EditorWindow.GetWindow<ILRuntimeCrossBinding>("生成跨域继承适配器").Show(); } Type type = typeof(Snxxz.UI.OperationBase); Type type = typeof(IConfigPostProcess); private void OnGUI() { Assets/ILRuntime/Src/ILBehaviourProxy.cs
@@ -14,8 +14,7 @@ [Tooltip("Logic工程的代码,例:命名空间.类名")] List<string> classNames; Dictionary<string, ILBehaviourHolder> ilBehaviourHolders = new Dictionary<string, ILBehaviourHolder>(); AppDomain appDomain { AppDomain appDomain { get { return ILLauncherProxy.Instance.appdomain; } } Assets/ILRuntime/Src/Inheritance/IConfigPostProcessAdapter.cs
New file @@ -0,0 +1,69 @@ using System; using ILRuntime.CLR.Method; using ILRuntime.Runtime.Enviorment; using ILRuntime.Runtime.Intepreter; namespace ILCrossBinding { public class IConfigPostProcessAdapter : CrossBindingAdaptor { static CrossBindingMethodInfo mOnConfigParseCompleted_0 = new CrossBindingMethodInfo("OnConfigParseCompleted"); public override Type BaseCLRType { get { return typeof(global::IConfigPostProcess); } } public override Type AdaptorType { get { return typeof(Adapter); } } public override object CreateCLRInstance(ILRuntime.Runtime.Enviorment.AppDomain appdomain, ILTypeInstance instance) { return new Adapter(appdomain, instance); } public class Adapter : global::IConfigPostProcess, CrossBindingAdaptorType { ILTypeInstance instance; ILRuntime.Runtime.Enviorment.AppDomain appdomain; public Adapter() { } public Adapter(ILRuntime.Runtime.Enviorment.AppDomain appdomain, ILTypeInstance instance) { this.appdomain = appdomain; this.instance = instance; } public ILTypeInstance ILInstance { get { return instance; } } public void OnConfigParseCompleted() { mOnConfigParseCompleted_0.Invoke(this.instance); } public override string ToString() { IMethod m = appdomain.ObjectType.GetMethod("ToString", 0); m = instance.Type.GetVirtualMethod(m); if (m == null || m is ILMethod) { return instance.ToString(); } else return instance.Type.FullName; } } } } Assets/ILRuntime/Src/Inheritance/IConfigPostProcessAdapter.cs.meta
New file @@ -0,0 +1,11 @@ fileFormatVersion: 2 guid: c5967f89ca472ae40b1417d5a69a7169 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: