Exemplo n.º 1
0
        protected override BuildResult DoBuild(IProgressMonitor monitor, ConfigurationSelector configuration)
        {
            LuaConfiguration config = this.DefaultConfiguration as LuaConfiguration;

            if (config != null && config.LangVersion == LangVersion.GarrysMod)
            {
                monitor.ReportWarning("Can't build a with Garry's Mod Lua syntax!");
                return(new BuildResult("Can't build a with Garry's Mod Lua syntax!", 0, 0));
            }

            return(LuaCompilerManager.Compile(this.Items, config, configuration, monitor));
        }
Exemplo n.º 2
0
        protected override BuildResult DoBuild(IProgressMonitor monitor, ConfigurationSelector configuration)
        {
            var config = DefaultConfiguration as LuaConfiguration;

            if (config != null && !string.IsNullOrEmpty(config.Launcher) && config.LangVersion == LangVersion.Moai)
            {
                monitor.ReportWarning("Can't build project with Moai syntax!");
                return(new BuildResult("Can't build project with Moai syntax!", 0, 0));
            }

            if (config != null && !string.IsNullOrEmpty(config.Launcher) && config.LangVersion == LangVersion.Love)
            {
                monitor.ReportWarning("Can't build project with Love syntax!");
                return(new BuildResult("Can't build project with Love syntax!", 0, 0));
            }

            if (config != null && config.LangVersion == LangVersion.GarrysMod)
            {
                monitor.ReportWarning("Can't build project with Garry's Mod Lua syntax!");
                return(new BuildResult("Can't build project with Garry's Mod Lua syntax!", 0, 0));
            }

            return(LuaCompilerManager.Compile(Items, config, configuration, monitor));
        }