mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-18 09:24:39 +01:00
35 lines
513 B
C#
35 lines
513 B
C#
using System.Reflection;
|
|
|
|
namespace LuaInterface
|
|
{
|
|
internal struct MethodCache
|
|
{
|
|
private MethodBase _cachedMethod;
|
|
|
|
public bool IsReturnVoid;
|
|
|
|
public object[] args;
|
|
|
|
public int[] outList;
|
|
|
|
public MethodArgs[] argTypes;
|
|
|
|
public MethodBase cachedMethod
|
|
{
|
|
get
|
|
{
|
|
return _cachedMethod;
|
|
}
|
|
set
|
|
{
|
|
_cachedMethod = value;
|
|
MethodInfo methodInfo = value as MethodInfo;
|
|
if (methodInfo != null)
|
|
{
|
|
IsReturnVoid = methodInfo.ReturnType == typeof(void);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|