Parse() public method

public Parse ( XmlDbRow row, StoryProgressionObject manager, IUpdateManager updater, string prefix, bool errorIfNone, string &error ) : bool
row XmlDbRow
manager StoryProgressionObject
updater IUpdateManager
prefix string
errorIfNone bool
error string
return bool
Example #1
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mFilter = new SimScenarioFilter();

            if (!mFilter.Parse(row, Manager, this, "Actor", true, ref error))
            {
                return(false);
            }

            return(base.Parse(row, ref error));
        }
Example #2
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mTargetContinueChance = row.GetInt("TargetContinueChance", mTargetContinueChance);

            mTargetMaximumCount = row.GetInt("TargetMaximumCount", mTargetMaximumCount);

            mMutualFilter = new SimScenarioFilter();
            if (!mMutualFilter.Parse(row, Manager, this, "Mutual", false, ref error))
            {
                return(false);
            }

            mTargetFilter = new SimScenarioFilter();
            if (!mTargetFilter.Parse(row, Manager, this, "Target", true, ref error))
            {
                return(false);
            }

            return(base.Parse(row, ref error));
        }
Example #3
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mTargetContinueChance = row.GetInt("TargetContinueChance", mTargetContinueChance);

            mTargetMaximumCount = row.GetInt("TargetMaximumCount", mTargetMaximumCount);

            mMutualFilter = new SimScenarioFilter();
            if (!mMutualFilter.Parse(row, Manager, this, "Mutual", false, ref error))
            {
                return false;
            }

            mTargetFilter = new SimScenarioFilter();
            if (!mTargetFilter.Parse(row, Manager, this, "Target", true, ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Example #4
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mFilter = new SimScenarioFilter();

            if (!mFilter.Parse(row, Manager, this, "Actor", true, ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }