少年修仙传客户端基础资源
lwb
2021-03-04 91b3000be47471608ec16b2ce1df1c0397c12451
9527 修改跨域继承注册

# Conflicts:
# Assets/ILRuntime/Editor/ILRuntimeCrossBinding.cs
2个文件已修改
18 ■■■■ 已修改文件
Assets/ILRuntime/Editor/ILRuntimeCLRBinding.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Src/ILLauncherProxy.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Editor/ILRuntimeCLRBinding.cs
@@ -211,12 +211,11 @@
        return null;
    }
    //这里需要注册所有热更DLL中用到的跨域继承Adapter,否则无法正确抓取引用
    static void InitILRuntime(ILRuntime.Runtime.Enviorment.AppDomain domain)
    {
        domain.RegisterCrossBindingAdaptor(new CoroutineAdapter());
        domain.RegisterCrossBindingAdaptor(new DtcBasicAdapter());
        domain.RegisterCrossBindingAdaptor(new GameNetPackBasicAdapter());
        //这里需要注册所有热更DLL中用到的跨域继承Adapter,否则无法正确抓取引用
        ILLauncherProxy.RegisterCrossBindingAdaptor(domain);
    }
}
Assets/ILRuntime/Src/ILLauncherProxy.cs
@@ -38,7 +38,7 @@
#endif
        //对LitJson进行注册
        LitJson.JsonMapper.RegisterILRuntimeCLRRedirection(_appdomain);
        RegisterCrossBindingAdaptor();
        RegisterCrossBindingAdaptor(appdomain);
        RegisterValueTypeBinder();
        RegisterDelegate();
#if UNITY_EDITOR
@@ -82,11 +82,12 @@
    }
    //注册跨域继承适配器
    private void RegisterCrossBindingAdaptor()
    public static void RegisterCrossBindingAdaptor(ILRuntime.Runtime.Enviorment.AppDomain domain)
    {
        appdomain.RegisterCrossBindingAdaptor(new CoroutineAdapter());
        appdomain.RegisterCrossBindingAdaptor(new DtcBasicAdapter());
        appdomain.RegisterCrossBindingAdaptor(new GameNetPackBasicAdapter());
        domain.RegisterCrossBindingAdaptor(new CoroutineAdapter());
        domain.RegisterCrossBindingAdaptor(new DtcBasicAdapter());
        domain.RegisterCrossBindingAdaptor(new GameNetPackBasicAdapter());
        domain.RegisterCrossBindingAdaptor(new OperationBaseAdapter());
    }
    //注册值类型绑定