//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class DropDownHelperWrap { public static void Register(LuaState L) { L.BeginClass(typeof(DropDownHelper), typeof(System.Object)); L.RegFunction("ClearDropDown", ClearDropDown); L.RegFunction("SetDropDownItems", SetDropDownItems); L.RegFunction("SetStartName", SetStartName); L.RegFunction("AddListener", AddListener); L.RegFunction("New", _CreateDropDownHelper); L.RegFunction("__tostring", ToLua.op_ToString); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateDropDownHelper(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { DropDownHelper obj = new DropDownHelper(); ToLua.PushObject(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: DropDownHelper.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ClearDropDown(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.UI.Dropdown arg0 = (UnityEngine.UI.Dropdown)ToLua.CheckObject(L, 1); DropDownHelper.ClearDropDown(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SetDropDownItems(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.UI.Dropdown arg0 = (UnityEngine.UI.Dropdown)ToLua.CheckObject(L, 1); string arg1 = ToLua.CheckString(L, 2); DropDownHelper.SetDropDownItems(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SetStartName(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.UI.Dropdown arg0 = (UnityEngine.UI.Dropdown)ToLua.CheckObject(L, 1); string arg1 = ToLua.CheckString(L, 2); DropDownHelper.SetStartName(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.UI.Dropdown arg0 = (UnityEngine.UI.Dropdown)ToLua.CheckObject(L, 1); UnityEngine.Events.UnityAction arg1 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate>(L, 2); DropDownHelper.AddListener(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } }