Files
BH3/Assets/Plugins/Assembly-CSharp-firstpass/LuaInterface/MethodCache.cs
2025-08-13 09:26:42 +08:00

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);
}
}
}
}
}