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

23 lines
483 B
C#

using System;
namespace LuaInterface
{
internal class DelegateGenerator
{
private ObjectTranslator translator;
private Type delegateType;
public DelegateGenerator(ObjectTranslator translator, Type delegateType)
{
this.translator = translator;
this.delegateType = delegateType;
}
public object extractGenerated(IntPtr luaState, int stackPos)
{
return CodeGeneration.Instance.GetDelegate(delegateType, translator.getFunction(luaState, stackPos));
}
}
}