コード例 #1
0
 private ePhenom DecodePhenom(string value)
 {
     if (value == "-")
     {
         return(ePhenom.Light);
     }
     else if (value == "+")
     {
         return(ePhenom.Heavy);
     }
     else
     {
         ePhenom ret = (ePhenom)Enum.Parse(typeof(ePhenom), value, false);
         return(ret);
     }
 }
コード例 #2
0
        /// <summary>
        /// Decodes and adds new phenomenom from string (e.g. from +RAHZ).
        /// </summary>
        /// <param name="value">String value to decode adds.</param>
        public void Add(string value)
        {
            ePhenom val = DecodePhenom(value);

            base.Add(val);
        }