public EventEffectKind GetEventEffectKind(int id)
        {
            EventEffectKind kind = null;

            this.EventEffectKinds.TryGetValue(id, out kind);
            return(kind);
        }
 public bool AddEventEffectKind(EventEffectKind e)
 {
     if (this.EventEffectKinds.ContainsKey(e.ID))
     {
         return(false);
     }
     this.EventEffectKinds.Add(e.ID, e);
     return(true);
 }
 public bool AddEventEffectKind(EventEffectKind e)
 {
     if (this.EventEffectKinds.ContainsKey(e.ID))
     {
         return false;
     }
     this.EventEffectKinds.Add(e.ID, e);
     return true;
 }
        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);
                }
            }
        }