Exemplo n.º 1
0
        public bool Save(Dictionary <string, Agent.State_t> states)
        {
            foreach (KeyValuePair <string, Variables> pair in m_static_variables)
            {
                string    className = pair.Key;
                Variables variables = pair.Value;

                //states.insert(std::pair<const string, State_t>(className, State_t()));
                states[className] = new Agent.State_t();

                variables.CopyTo(null, states[className].Vars);
            }

            return(true);
        }
Exemplo n.º 2
0
        public bool Save(Dictionary <string, Agent.State_t> states)
        {
            var e = m_static_variables.GetEnumerator();

            while (e.MoveNext())
            {
                string    className = e.Current.Key;
                Variables variables = e.Current.Value;

                //states.insert(std::pair<const string, State_t>(className, State_t()));
                states[className] = new Agent.State_t();

                variables.CopyTo(null, states[className].Vars);
            }

            return(true);
        }