Esempio n. 1
0
        public void InitNewState(Context context)
        {
            LocalContext = new Context(context);

            if(m_variables != null)
            {
                foreach (KeyValuePair<string, Func<ISequenceNode>> variable in m_variables)
                {
                    LocalContext.SetVariableFactory(variable.Key, variable.Value);
                }
            }

            ValueBinder.BindValues(this, XmlData, LocalContext);

            if (XmlData != null)
            {
                LoadDataFromXml(XmlData, LocalContext);
            }

            OnInitNewState(LocalContext);
        }