Esempio n. 1
0
        public NVector(string pos)
        {
            string[] sett = SplitHelper.Separator(pos);

            this.x     = ConvertHelper.Int(sett[1]);
            this.y     = ConvertHelper.Int(sett[2]);
            this.level = ConvertHelper.Int(sett[0]);
        }
Esempio n. 2
0
        /// <summary>
        /// Split with =
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static (string key, int value) DelimiterInt(string data)
        {
            var v = Delimiter(data);

            return(v.key, ConvertHelper.Int(v.value));
        }
Esempio n. 3
0
        /// <summary>
        /// Split with :
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static (string key, int value) SplitInt(string data)
        {
            var v = Split(data);

            return(v.key, ConvertHelper.Int(v.value));
        }