Ejemplo n.º 1
0
        public void ToObject(string sentence, PlayerRegister reg)
        {
            string[] stage1  = sentence.Split(';');
            string[] stage11 = stage1[0].Split(',');
            this.from_str = stage11[0];
            this.from     = reg.Lookup(stage11[0]);
            this.to       = reg.Lookup(stage11[1]);
            this.to_str   = stage11[1];
            string[] stage12 = stage1[1].Split(',');

            for (int i = 0; i < stage12.Length; i++)
            {
                this.action.Add(stage12[i].Split(':'));
            }
        }
Ejemplo n.º 2
0
        public void ToObject(string sentence, PlayerRegister reg)
        {
            string[] stage1 = sentence.Split(';');
            string[] stage11 = stage1[0].Split(',');
            this.from_str = stage11[0];
            this.from = reg.Lookup(stage11[0]);
            this.to = reg.Lookup(stage11[1]);
            this.to_str = stage11[1];
            string[] stage12 = stage1[1].Split(',');

            for (int i = 0; i < stage12.Length; i++)
            {
                this.action.Add(stage12[i].Split(':'));
            }
        }