Пример #1
0
        public virtual void AddVariable(uint varId, IInstantiatedVariable pVar, int stackIndex)
        {
            Debug.Check(!this.m_variables.ContainsKey(varId));

            this.m_variables[varId] = pVar;
        }
Пример #2
0
 public override void AddVariable(uint varId, IInstantiatedVariable pVar, int stackIndex)
 {
     if (this.state_stack != null && this.state_stack.Count > 0 &&
         stackIndex > 0 && stackIndex < this.state_stack.Count)
     {
         AgentState t = this.state_stack[stackIndex];
         t.AddVariable(varId, pVar, -1);
     }
     else
     {
         base.AddVariable(varId, pVar, -1);
     }
 }