public void LoadFromString(EventEffectKindTable allEventEffectKinds, string influenceIDs) { char[] separator = new char[] { ' ', '\n', '\r' }; string[] strArray = influenceIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries); EventEffectKind kind = null; for (int i = 0; i < strArray.Length; i++) { if (allEventEffectKinds.EventEffectKinds.TryGetValue(int.Parse(strArray[i]), out kind)) { this.AddEventEffectKind(kind); } } }
public void LoadFromString(EventEffectKindTable allEventEffectKinds, string influenceIDs) { char[] separator = new char[] { ' ', '\n', '\r', '\t' }; string[] strArray = influenceIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries); EventEffectKind kind = null; for (int i = 0; i < strArray.Length; i++) { if (allEventEffectKinds.EventEffectKinds.TryGetValue(int.Parse(strArray[i]), out kind)) { this.AddEventEffectKind(kind); } } }