Esempio n. 1
0
    static int set_HandleOnDeleteItem(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPopupListExtended obj = (UIPopupListExtended)o;
            UIPopupListExtended.OnDeleteItem arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (UIPopupListExtended.OnDeleteItem)ToLua.CheckObject(L, 2, typeof(UIPopupListExtended.OnDeleteItem));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(UIPopupListExtended.OnDeleteItem), func) as UIPopupListExtended.OnDeleteItem;
            }

            obj.HandleOnDeleteItem = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index HandleOnDeleteItem on a nil value" : e.Message));
        }
    }
Esempio n. 2
0
    static int get_HandleOnDeleteItem(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPopupListExtended obj = (UIPopupListExtended)o;
            UIPopupListExtended.OnDeleteItem ret = obj.HandleOnDeleteItem;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index HandleOnDeleteItem on a nil value" : e.Message));
        }
    }