public void Init(SerializeableAtom atomName) { if (canBeRenamed) { originalName = this.name; originalAbbr = this.abbreviation; this.name = atomName.name; this.abbreviation = atomName.abbr; hasBeenRenamed = atomName.hasBeenRenamed; } }
public void Save(SaveData s) { SerializeableAtom atomName = new SerializeableAtom(); for (int i = 0; i < atomData.Count; i++) { atomName.abbr = atoms[i].GetAbbreviation(); atomName.name = atoms[i].GetName(); atomName.hasBeenRenamed = atoms[i].HasBeRenamed(); s.atomNames.Add(atomName); s.atomData.Add(atomData[i].data); } s.maxAtom = maxAtom; }