コード例 #1
0
ファイル: LuaProject.cs プロジェクト: xiexin36/LuaBinding-1
        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));
        }
コード例 #2
0
ファイル: LuaProject.cs プロジェクト: auRose94/LuaBinding
        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));
        }