static int CreateItem(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIBase obj = (UIBase)ToLua.CheckObject(L, 1, typeof(UIBase)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); UIBase o = obj.CreateItem(arg0, arg1); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }