private void SaveActionParams(BotActionDesc action, object[] args, MyPerTreeBotMemory botMemory)
 {
     foreach (var key in action.ParametersDesc.Keys)
     {
         MyStringId stringId = args[key] as Boxed <MyStringId>;
         botMemory.SaveToBlackboard(stringId, action.ActionParams[key] as MyBBMemoryValue);
     }
 }
Esempio n. 2
0
 private void SaveActionParams(BotActionDesc action, object[] args, MyPerTreeBotMemory botMemory)
 {
     foreach (int num in action.ParametersDesc.Keys)
     {
         MyStringId id = (MyStringId)(args[num] as VRage.Boxed <MyStringId>);
         if (((MyMemoryParameterType)action.ParametersDesc[num].Item2) != MyMemoryParameterType.IN)
         {
             botMemory.SaveToBlackboard(id, action.ActionParams[num] as MyBBMemoryValue);
         }
     }
 }
        private void SaveActionParams(BotActionDesc action, object[] args, MyPerTreeBotMemory botMemory)
        {
            foreach (var key in action.ParametersDesc.Keys)
            {
                MyStringId stringId = args[key] as Boxed<MyStringId>;
				var parameterDesc = action.ParametersDesc[key];
				if(parameterDesc.Item2 != MyMemoryParameterType.IN)
				  botMemory.SaveToBlackboard(stringId, action.ActionParams[key] as MyBBMemoryValue);
            }
        }