public GlobalString DeepCopy() { GlobalString copy = new GlobalString(); copy.Key = this.Key; copy.Value = this.Value; return copy; }
public GlobalString DeepCopy() { GlobalString copy = new GlobalString(); copy.Key = this.Key; copy.Value = this.Value; return(copy); }
//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>"); } } }