public static int get_goodsID(IntPtr l)
    {
        int result;

        try
        {
            NeedGoods needGoods = (NeedGoods)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, needGoods.goodsID);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_goodsType(IntPtr l)
    {
        int result;

        try
        {
            NeedGoods needGoods = (NeedGoods)LuaObject.checkSelf(l);
            GoodsType goodsType;
            LuaObject.checkEnum <GoodsType>(l, 2, out goodsType);
            needGoods.goodsType = goodsType;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            GoodsType gt;
            LuaObject.checkEnum <GoodsType>(l, 2, out gt);
            int gi;
            LuaObject.checkType(l, 3, out gi);
            int gc;
            LuaObject.checkType(l, 4, out gc);
            NeedGoods o = new NeedGoods(gt, gi, gc);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }