mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-18 17:34:45 +01:00
23 lines
444 B
C#
23 lines
444 B
C#
using System;
|
|
|
|
namespace LuaInterface
|
|
{
|
|
internal class ClassGenerator
|
|
{
|
|
private ObjectTranslator translator;
|
|
|
|
private Type klass;
|
|
|
|
public ClassGenerator(ObjectTranslator translator, Type klass)
|
|
{
|
|
this.translator = translator;
|
|
this.klass = klass;
|
|
}
|
|
|
|
public object extractGenerated(IntPtr luaState, int stackPos)
|
|
{
|
|
return CodeGeneration.Instance.GetClassInstance(klass, translator.getTable(luaState, stackPos));
|
|
}
|
|
}
|
|
}
|