static int Destroy(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ANFramework.ANF obj = (ANFramework.ANF)ToLua.CheckObject <ANFramework.ANF>(L, 1); obj.Destroy(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Mgr(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ANFramework.ANF obj = (ANFramework.ANF)o; ANFramework.Managers ret = obj.Mgr; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Mgr on a nil value")); } }