Beispiel #1
0
 public BuildScopeCommandQFOrTIF(TES5PropertyFactory propertyFactory, FragmentsReferencesBuilder fragmentsReferencesBuilder, TES5BasicType scriptType, string scriptNamePrefix, TES5FragmentType fragmentType)
 {
     this.propertyFactory            = propertyFactory;
     this.fragmentsReferencesBuilder = fragmentsReferencesBuilder;
     this.scriptType       = scriptType;
     this.scriptNamePrefix = scriptNamePrefix;
     this.fragmentType     = fragmentType;
 }
 public BuildTIFFragmentsCommand()
 {
     Name        = "skyblivion:parser:buildTifFragments";
     Description = "Run lexing and parsing test against whole TIF fragments suite and build papyrus scripts";
     Input.AddArgument(new LPCommandArgument("buildPath", "Build folder", Build.DEFAULT_BUILD_PATH));
     Input.AddOption(new LPCommandOption("skip-parsing", "sp", "Skip the parsing part.", "false"));
     Input.AddOption(new LPCommandOption("mode", null, "The mode this build runs in. Allowed: sloppy (will start building on over 50% scripts parsed), normal (85% and over will trigger the build), strict (over 95% will trigger the build), and perfect (only 100% will trigger the build), defaults to strict.", "strict"));
     this.fragmentsReferencesBuilder = new FragmentsReferencesBuilder();
 }
Beispiel #3
0
        public TES5GlobalScope Build(string sourcePath, TES5GlobalVariables globalVariables)
        {
            string scriptName     = Path.GetFileNameWithoutExtension(sourcePath);
            string referencesPath = Path.Combine(Path.GetDirectoryName(sourcePath), scriptName + ".references");
            //Create the header.
            TES5ScriptHeader            scriptHeader = new TES5ScriptHeader(scriptName, TES5BasicType.T_QUEST, "", true);
            TES5GlobalScope             globalScope  = new TES5GlobalScope(scriptHeader);
            TES4VariableDeclarationList variableList = FragmentsReferencesBuilder.buildVariableDeclarationList(referencesPath);

            if (variableList != null)
            {
                TES5PropertiesFactory.CreateProperties(variableList, globalScope, globalVariables);
            }
            return(globalScope);
        }
Beispiel #4
0
 public BuildScopeCommand(TES5PropertyFactory propertyFactory, FragmentsReferencesBuilder fragmentsReferencesBuilder)
     : base(propertyFactory, fragmentsReferencesBuilder, TES5BasicType.T_TOPICINFO, TES5TypeFactory.TES4_Prefix, TES5FragmentType.T_TIF)
 {
 }
Beispiel #5
0
 public BuildScopeCommand(TES5PropertyFactory propertyFactory, FragmentsReferencesBuilder fragmentsReferencesBuilder)
     : base(propertyFactory, fragmentsReferencesBuilder, TES5BasicType.T_QUEST, "", TES5FragmentType.T_QF)
 {
 }