Example #1
0
        public void LoadScenBiographyFromString(string data)
        {
            char[]   separator = new char[] { ' ', '\n', '\r', '\t' };
            string[] strArray  = data.Split(separator, StringSplitOptions.RemoveEmptyEntries);

            this.scenBiography = new List <PersonIdDialog>();
            for (int i = 0; i < strArray.Length; i += 2)
            {
                PersonIdDialog d = new PersonIdDialog();
                d.id     = int.Parse(strArray[i]);
                d.dialog = strArray[i + 1];
                this.scenBiography.Add(d);
            }
        }
Example #2
0
        public void LoadDialogFromString(string data)
        {
            char[] separator = new char[] { ' ', '\n', '\r' };
            string[] strArray = data.Split(separator, StringSplitOptions.RemoveEmptyEntries);

            this.dialog = new List<PersonIdDialog>();
            for (int i = 0; i < strArray.Length; i += 2)
            {
                PersonIdDialog d = new PersonIdDialog();
                d.id = int.Parse(strArray[i]);
                d.dialog = strArray[i + 1];
                this.dialog.Add(d);
            }
        }