本文整理匯總了C#中Agent.LogVariables方法的典型用法代碼示例。如果您正苦於以下問題:C# Agent.LogVariables方法的具體用法?C# Agent.LogVariables怎麽用?C# Agent.LogVariables使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Agent
的用法示例。
在下文中一共展示了Agent.LogVariables方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: LogPlanMethodBegin
private void LogPlanMethodBegin(Agent a, BehaviorNode m)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
string ni = BehaviorTask.GetTickInfo(a, m, null);
LogManager.Instance.Log("[plan_method_begin]{0}\n", ni);
a.LogVariables(true);
}
#endif
}
示例2: LogPlanForEachBegin
public void LogPlanForEachBegin(Agent a, DecoratorIterator pForEach, int index, int count)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
string ni = BehaviorTask.GetTickInfo(a, pForEach, null);
LogManager.Instance.Log("[plan_foreach_begin]{0} {1} {2}\n", ni, index, count);
a.LogVariables(true);
}
#endif
}
示例3: LogPlanBegin
private void LogPlanBegin(Agent a, Task root)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
string agentClassName = a.GetClassTypeName();
string agentInstanceName = a.GetName();
agentClassName = agentClassName.Replace(".", "::");
agentInstanceName = agentInstanceName.Replace(".", "::");
string ni = BehaviorTask.GetTickInfo(a, root, "plan");
int count = Workspace.Instance.GetActionCount(ni) + 1;
string buffer = string.Format("[plan_begin]{0}#{1} {2} {3}\n", agentClassName, agentInstanceName, ni, count);
LogManager.Instance.Log(buffer);
a.LogVariables(true);
}
#endif
}