Ejemplo n.º 1
0
    public static int ApplyVolume(IntPtr l)
    {
        int result;

        try
        {
            LocalConfig localConfig = (LocalConfig)LuaObject.checkSelf(l);
            string      category;
            LuaObject.checkType(l, 2, out category);
            bool isInitialize;
            LuaObject.checkType(l, 3, out isInitialize);
            localConfig.ApplyVolume(category, isInitialize);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }