Example #1
0
            public void UpdateManager(StoryProgressionObject manager)
            {
                if (mOption == null)
                {
                    return;
                }

                mOption = manager.GetOption <AgeGenderOption>(mOption.GetTitlePrefix());
            }
Example #2
0
            public bool Parse(XmlDbRow row, string name, StoryProgressionObject manager, IUpdateManager updater, ref string error)
            {
                string value = row.GetString(name);

                if (string.IsNullOrEmpty(value))
                {
                    error = "AgeGenderOption " + name + " missing";
                    return(false);
                }

                if (!bool.TryParse(value, out mValue))
                {
                    mOption = manager.GetOption <AgeGenderOption>(value);
                    if (mOption == null)
                    {
                        error = "AgeGenderOption " + value + " missing";
                        return(false);
                    }
                }

                updater.AddUpdater(this);
                return(true);
            }
Example #3
0
            public void UpdateManager(StoryProgressionObject manager)
            {
                if (mOption == null) return;

                mOption = manager.GetOption<AgeGenderOption>(mOption.GetTitlePrefix());
            }
Example #4
0
            public bool Parse(XmlDbRow row, string name, StoryProgressionObject manager, IUpdateManager updater, ref string error)
            {
                string value = row.GetString(name);

                if (string.IsNullOrEmpty(value))
                {
                    error = "AgeGenderOption " + name + " missing";
                    return false;
                }

                if (!bool.TryParse(value, out mValue))
                {
                    mOption = manager.GetOption<AgeGenderOption>(value);
                    if (mOption == null)
                    {
                        error = "AgeGenderOption " + value + " missing";
                        return false;
                    }
                }

                updater.AddUpdater(this);
                return true;
            }