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

        try
        {
            ConfigDataBattleLoseConditionInfo configDataBattleLoseConditionInfo = (ConfigDataBattleLoseConditionInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, configDataBattleLoseConditionInfo.ID);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataBattleLoseConditionInfo o = new ConfigDataBattleLoseConditionInfo();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_LoseConditionType(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataBattleLoseConditionInfo configDataBattleLoseConditionInfo = (ConfigDataBattleLoseConditionInfo)LuaObject.checkSelf(l);
            BattleLoseConditionType           loseConditionType;
            LuaObject.checkEnum <BattleLoseConditionType>(l, 2, out loseConditionType);
            configDataBattleLoseConditionInfo.LoseConditionType = loseConditionType;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }