public void ProcessCommand(Dictionary <string, string> CmdList, string filePath, string fileName)
        {
            List <string> fileDataList = new List <string>(ReadDataFile.Load_DataFile(filePath, fileName));

            string value = ReadDataFile.Read_RawSingleLine(cmdKeys.cmdName, fileDataList);

            int[]         brackest = ReadDataFile.FindUniqueBrackets(cmdKeys.cmdSynonymList_Start, cmdKeys.cmdSynonymList_End, fileDataList);
            List <string> keys     = ReadDataFile.Read_WordLists(brackest[0], brackest[1], fileDataList);

            AddSafe(CmdList, value, value);
            foreach (string synonym in keys)
            {
                #region Test Prints
                //Console.WriteLine(value + ", " + synonym);
                //AddSafe(CmdList, TextUtils.StemWord.Stem(synonym).Value, value);
                //string StemValue = TextUtils.StemWord.Stem("looking").Value;
                #endregion
                AddSafe(CmdList, synonym, value);
            }
            #region - DEBUG - Test print some variables

            /*foreach (string line in fileDataList)
             * {
             *  Console.WriteLine(line);
             * }
             * Console.WriteLine(value);
             * foreach (int brack in brackest)
             * {
             *  Console.WriteLine(brack);
             * }*/
            #endregion
        }
 private void ProcessData()
 {
     area.SetName(ReadDataFile.Read_RawSingleLine(areaKeys.areaName, fileData));
     area.SetLook_Description(ReadDataFile.Read_RawSingleLine(areaKeys.areaLook_Description, fileData));
     area.SetCinimatic(ReadDataFile.BetweenUniqueBrackets(areaKeys.areaCinamatic_Start, areaKeys.areaCinamatic_End));
     ProcessAllItems();
     ProcessAllExits();
 }
Exemple #3
0
        private void ProcessData()
        {
            //Console.WriteLine("Processing : " + fileName);
            item.name            = ReadDataFile.Read_RawSingleLine(itemKeys.itemName, fileData);
            item.PickedupAllowed = ReadDataFile.Read_RawSingleLine(itemKeys.itemCanBePickedip, fileData).Equals("true"); //reads a text string "true" or "false". if that is "equal to true" it returns "bool true", otherwise return "bool false"

            item.description_Default = ReadDataFile.Read_RawSingleLine(itemKeys.DescriptionDefault, fileData);
            item.getItem_Failed      = ReadDataFile.Read_RawSingleLine(itemKeys.itemGetFailed, fileData);
        }