예제 #1
0
 private void LastEditVar(SaveClass e)
 {
     if (e.saveCom == "set" || e.saveCom == "sub")
     {
         if (dictionary.ContainsKey(e.saveVar))
         {
             if (dicLine.ContainsKey(e.saveVar))
             {
                 dicLine[e.saveVar] = e.markLine;
             }
             else
             {
                 dicLine.Add(e.saveVar, e.markLine);
             }
         }
     }
 }
예제 #2
0
        public void SaveFunke(string[] command_split, bool SaveComOrDef)
        {
            SaveClass tempSaveFunc = new SaveClass
            {
                defName  = saveDefName,
                saveCom  = command_split[(int)EnumCom.command],
                saveVar  = command_split[(int)EnumCom.variable],
                markLine = saveMarkLine
            };

            saveMarkLine++;
            if (command_split.Length == 3)
            {
                tempSaveFunc.saveVal = Int32.Parse(command_split[(int)EnumCom.value]);
            }
            if (SaveComOrDef)
            {
                SaveDefList.Add(tempSaveFunc);
            }
            else
            {
                SaveComList.Add(tempSaveFunc);
            }
        }