コード例 #1
0
ファイル: GlobalString.cs プロジェクト: youngneil1/IB2Engine
 public GlobalString DeepCopy()
 {
     GlobalString copy = new GlobalString();
     copy.Key = this.Key;
     copy.Value = this.Value;
     return copy;
 }
コード例 #2
0
        public GlobalString DeepCopy()
        {
            GlobalString copy = new GlobalString();

            copy.Key   = this.Key;
            copy.Value = this.Value;
            return(copy);
        }
コード例 #3
0
 //GLOBAL AND LOCAL STRINGS
 public void SetGlobalString(string variableName, string val)
 {
     int exists = 0;
     foreach (GlobalString variable in mod.moduleGlobalStrings)
     {
         if (variable.Key.Equals(variableName))
         {
             variable.Value = val;
             exists = 1;
             if (mod.debugMode) //SD_20131102
             {
                 gv.cc.addLogText("<font color='yellow'>" + "setGlobal: " + variableName + " = " + val + "</font>" +
                         "<BR>");
             }
         }
     }
     if (exists == 0)
     {
         GlobalString newGlobal = new GlobalString();
         newGlobal.Key = variableName;
         newGlobal.Value = val;
         mod.moduleGlobalStrings.Add(newGlobal);
         if (mod.debugMode) //SD_20131102
         {
             gv.cc.addLogText("<font color='yellow'>" + "setGlobal: " + variableName + " = " + val + "</font>" +
                     "<BR>");
         }
     }
 }