コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
        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);
                }
            }
        }