private static FrameState setFrameState(string agentFullname, int frame, string behaviorFilename, string nodeId, string actionName, string actionResult, int hitCount) { FrameState frameState = setFrameState(agentFullname, frame, behaviorFilename, nodeId); if (frameState != null) { FrameState.Action action = new FrameState.Action(); action.NodeId = nodeId; action.Name = actionName; action.Result = actionResult; action.HitCount = hitCount; frameState.Actions.Add(action); if (!MessageQueue.BreakAPP && MessageQueue.IsConnected) { RespondToAPPBreak(agentFullname, frame, behaviorFilename, nodeId, actionName, actionResult, hitCount); } } return(frameState); }
private static FrameState setFrameState(string agentFullname, int frame, string behaviorFilename, string nodeId, string actionName, string actionResult, int hitCount) { FrameState frameState = setFrameState(agentFullname, frame, behaviorFilename, nodeId); if (frameState != null) { FrameState.Action action = new FrameState.Action(); action.NodeId = nodeId; action.Name = actionName; action.Result = actionResult; action.HitCount = hitCount; frameState.Actions.Add(action); if (!MessageQueue.BreakAPP && MessageQueue.IsConnected) RespondToAPPBreak(agentFullname, frame, behaviorFilename, nodeId, actionName, actionResult, hitCount); } return frameState; }