少年修仙传客户端基础资源
liuxue
2021-07-26 a85c9a62f6c8222e9d69c2c06f117c41131040aa
Assets/ILRuntime/Src/ILLauncherProxy.cs
@@ -14,10 +14,8 @@
    private ILRuntime.Runtime.Enviorment.AppDomain _appdomain;
    public ILRuntime.Runtime.Enviorment.AppDomain appdomain
    {
        get
        {
    public ILRuntime.Runtime.Enviorment.AppDomain appdomain {
        get {
            return _appdomain;
        }
    }
@@ -38,7 +36,7 @@
#endif
        //对LitJson进行注册
        LitJson.JsonMapper.RegisterILRuntimeCLRRedirection(_appdomain);
        RegisterCrossBindingAdaptor();
        RegisterCrossBindingAdaptor(appdomain);
        RegisterValueTypeBinder();
        RegisterDelegate();
#if UNITY_EDITOR
@@ -82,11 +80,13 @@
    }
    //注册跨域继承适配器
    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());
        domain.RegisterCrossBindingAdaptor(new IConfigPostProcessAdapter());
    }
    //注册值类型绑定
@@ -100,6 +100,19 @@
    //注册委托
    private void RegisterDelegate()
    {
        appdomain.DelegateManager.RegisterDelegateConvertor<UGUIEventListenerContainDrag.VoidDelegate>((action) =>
        {
            return new UGUIEventListenerContainDrag.VoidDelegate((go) => ((Action<GameObject>)action)(go));
        });
        appdomain.DelegateManager.RegisterMethodDelegate<UnityEngine.GameObject, UnityEngine.EventSystems.PointerEventData>();
        appdomain.DelegateManager.RegisterDelegateConvertor<global::UGUIEventListenerContainDrag.VoidDelegateDrag>((act) =>
        {
            return new global::UGUIEventListenerContainDrag.VoidDelegateDrag((go, eventData) =>
            {
                ((System.Action<UnityEngine.GameObject, UnityEngine.EventSystems.PointerEventData>)act)(go, eventData);
            });
        });
        //无返回值
        appdomain.DelegateManager.RegisterMethodDelegate<int>();
        appdomain.DelegateManager.RegisterMethodDelegate<long>();
@@ -120,6 +133,7 @@
        appdomain.DelegateManager.RegisterMethodDelegate<ulong>();
        appdomain.DelegateManager.RegisterMethodDelegate<uint>();
        appdomain.DelegateManager.RegisterMethodDelegate<Snxxz.UI.Operation>();
        appdomain.DelegateManager.RegisterMethodDelegate<Snxxz.UI.Operation, int>();
        appdomain.DelegateManager.RegisterMethodDelegate<float, Vector2>();
        appdomain.DelegateManager.RegisterMethodDelegate<int, Transform>();
        appdomain.DelegateManager.RegisterMethodDelegate<Vector2>();
@@ -152,8 +166,25 @@
        appdomain.DelegateManager.RegisterMethodDelegate<DateTime>();
        appdomain.DelegateManager.RegisterMethodDelegate<System.Object>();
        appdomain.DelegateManager.RegisterMethodDelegate<global::ScrollerDataType, global::CellView>();
        appdomain.DelegateManager.RegisterMethodDelegate<int, LitJson.JsonData>();
        appdomain.DelegateManager.RegisterMethodDelegate<System.UInt32, System.UInt32, global::GActorPlayerBase.PlayerInfo, global::E_ActorGroup>();
        appdomain.DelegateManager.RegisterMethodDelegate<global::GameNetPackBasic>();
        appdomain.DelegateManager.RegisterMethodDelegate<System.Byte>();
        appdomain.DelegateManager.RegisterMethodDelegate<System.UInt32, UnityEngine.GameObject>();
        appdomain.DelegateManager.RegisterMethodDelegate<ILCrossBinding.GameNetPackBasicAdapter.Adapter>();
        appdomain.DelegateManager.RegisterMethodDelegate<global::GA_ILClientPlayer>();
        appdomain.DelegateManager.RegisterMethodDelegate<System.UInt32, System.UInt64, System.UInt64>();
        appdomain.DelegateManager.RegisterMethodDelegate<global::DungeonCoolDownType>();
        appdomain.DelegateManager.RegisterMethodDelegate<global::HA9A2_tagPYBillboardData>();
        appdomain.DelegateManager.RegisterMethodDelegate<System.UInt32, System.UInt32>();
        appdomain.DelegateManager.RegisterMethodDelegate<System.UInt32, System.Int32>();
        appdomain.DelegateManager.RegisterMethodDelegate<int, int, int>();
        appdomain.DelegateManager.RegisterMethodDelegate<PackType>();
        appdomain.DelegateManager.RegisterMethodDelegate<UnityEngine.Color>();
        appdomain.DelegateManager.RegisterMethodDelegate<global::HA705_tagSCQueryPlayerCacheResult>();
        //有返回值
        appdomain.DelegateManager.RegisterFunctionDelegate<UnityEngine.Color>();
        appdomain.DelegateManager.RegisterFunctionDelegate<int>();
        appdomain.DelegateManager.RegisterFunctionDelegate<bool>();
        appdomain.DelegateManager.RegisterFunctionDelegate<long>();
@@ -163,6 +194,39 @@
        appdomain.DelegateManager.RegisterFunctionDelegate<int, bool>();
        appdomain.DelegateManager.RegisterFunctionDelegate<System.Int32, System.Int32, System.Int32>();
        appdomain.DelegateManager.RegisterFunctionDelegate<ILRuntime.Runtime.Intepreter.ILTypeInstance, ILRuntime.Runtime.Intepreter.ILTypeInstance, System.Int32>();
        //DG.Tweening
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.TweenCallback<System.Int32>>((act) =>
        {
            return new DG.Tweening.TweenCallback<System.Int32>((value) =>
            {
                ((System.Action<System.Int32>)act)(value);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.Core.DOSetter<UnityEngine.Color>>((act) =>
        {
            return new DG.Tweening.Core.DOSetter<UnityEngine.Color>((pNewValue) =>
            {
                ((System.Action<UnityEngine.Color>)act)(pNewValue);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.Core.DOGetter<UnityEngine.Color>>((act) =>
        {
            return new DG.Tweening.Core.DOGetter<UnityEngine.Color>(() =>
            {
                return ((Func<UnityEngine.Color>)act)();
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.TweenCallback>((act) =>
        {
            return new DG.Tweening.TweenCallback(() =>
            {
                ((System.Action)act)();
            });
        });
        //自定义委托转换
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction>((action) =>
@@ -201,6 +265,109 @@
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<bool>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<bool>((arg0) =>
            {
                ((System.Action<bool>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<float>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<float>((arg0) =>
            {
                ((System.Action<float>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<string>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<string>((arg0) =>
            {
                ((System.Action<string>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<System.UInt32, System.UInt32, global::GActorPlayerBase.PlayerInfo, global::E_ActorGroup>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<System.UInt32, System.UInt32, global::GActorPlayerBase.PlayerInfo, global::E_ActorGroup>((arg0, arg1, arg2, arg3) =>
            {
                ((System.Action<System.UInt32, System.UInt32, global::GActorPlayerBase.PlayerInfo, global::E_ActorGroup>)act)(arg0, arg1, arg2, arg3);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<global::GameNetPackBasic>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<global::GameNetPackBasic>((arg0) =>
            {
                ((System.Action<global::GameNetPackBasic>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<System.Byte>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<System.Byte>((arg0) =>
            {
                ((System.Action<System.Byte>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<System.UInt32, UnityEngine.GameObject>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<System.UInt32, UnityEngine.GameObject>((arg0, arg1) =>
            {
                ((System.Action<System.UInt32, UnityEngine.GameObject>)act)(arg0, arg1);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<System.UInt64>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<System.UInt64>((arg0) =>
            {
                ((System.Action<System.UInt64>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<System.Int32>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<System.Int32>((arg0) =>
            {
                ((System.Action<System.Int32>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<global::GA_ILClientPlayer>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<global::GA_ILClientPlayer>((arg0) =>
            {
                ((System.Action<global::GA_ILClientPlayer>)act)(arg0);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<UnityEngine.Events.UnityAction<System.UInt32, System.UInt64, System.UInt64>>((act) =>
        {
            return new UnityEngine.Events.UnityAction<System.UInt32, System.UInt64, System.UInt64>((arg0, arg1, arg2) =>
            {
                ((System.Action<System.UInt32, System.UInt64, System.UInt64>)act)(arg0, arg1, arg2);
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<global::BuffModel.OnObjAddBuff>((act) =>
        {
            return new global::BuffModel.OnObjAddBuff(() =>
            {
                ((System.Action)act)();
            });
        });
        appdomain.DelegateManager.RegisterDelegateConvertor<global::BuffModel.OnObjDelBuff>((act) =>
        {
            return new global::BuffModel.OnObjDelBuff(() =>
            {
                ((System.Action)act)();
            });
        });
    }
    public void LaunchStart()
@@ -237,7 +404,7 @@
            m.Invoke(null, new object[] { appdomain });
        }
#else
        ILRuntime.Runtime.Generated.CLRBindings.Shutdown(appDomain);
        ILRuntime.Runtime.Generated.CLRBindings.Shutdown(appdomain);
#endif
        dllFS?.Close();
        pdbFS?.Close();