From 0411a8352a41ad7241b7a7cdb6d32ff5e533a3d9 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 21 十二月 2021 17:03:17 +0800
Subject: [PATCH] 0312 IL接口
---
Assets/ILRuntime/Src/ILLauncherProxy.cs | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Assets/ILRuntime/Src/ILLauncherProxy.cs b/Assets/ILRuntime/Src/ILLauncherProxy.cs
index 9eccb32..8c50218 100644
--- a/Assets/ILRuntime/Src/ILLauncherProxy.cs
+++ b/Assets/ILRuntime/Src/ILLauncherProxy.cs
@@ -194,6 +194,17 @@
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>();
+ appdomain.DelegateManager.RegisterFunctionDelegate<ILRuntime.Runtime.Intepreter.ILTypeInstance, System.Boolean>();
+
+
+ appdomain.DelegateManager.RegisterDelegateConvertor<System.Predicate<ILRuntime.Runtime.Intepreter.ILTypeInstance>>((act) =>
+ {
+ return new System.Predicate<ILRuntime.Runtime.Intepreter.ILTypeInstance>((obj) =>
+ {
+ return ((Func<ILRuntime.Runtime.Intepreter.ILTypeInstance, System.Boolean>)act)(obj);
+ });
+ });
+
//DG.Tweening
appdomain.DelegateManager.RegisterDelegateConvertor<DG.Tweening.TweenCallback<System.Int32>>((act) =>
--
Gitblit v1.8.0