static int GetControls(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); HeroItem obj = (HeroItem)ToLua.CheckObject(L, 1, typeof(HeroItem)); obj.GetControls(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }