public static string GetTickInfo(Agent pAgent, BehaviorNode n, string action) { #if !BEHAVIAC_RELEASE if (Config.IsLoggingOrSocketing) { if (pAgent != null && pAgent.IsMasked()) { //BEHAVIAC_PROFILE("GetTickInfo", true); string bClassName = n.GetClassNameString(); //filter out intermediate bt, whose class name is empty if (!string.IsNullOrEmpty(bClassName)) { string btName = GetParentTreeName(n); string bpstr = ""; if (!string.IsNullOrEmpty(btName)) { bpstr = string.Format("{0}.xml->", btName); } int nodeId = n.GetId(); bpstr += string.Format("{0}[{1}]", bClassName, nodeId); if (!string.IsNullOrEmpty(action)) { bpstr += string.Format(":{0}", action); } return(bpstr); } } } #endif return(string.Empty); }
public static string GetTickInfo(Agent pAgent, BehaviorNode n, string action) { #if !BEHAVIAC_RELEASE if (Config.IsLoggingOrSocketing) { if (pAgent != null && pAgent.IsMasked()) { //BEHAVIAC_PROFILE("GetTickInfo", true); string bClassName = n.GetClassNameString(); //filter out intermediate bt, whose class name is empty if (!string.IsNullOrEmpty(bClassName)) { string btName = GetParentTreeName(n); string bpstr = ""; if (!string.IsNullOrEmpty(btName)) { bpstr = string.Format("{0}.xml->", btName); } int nodeId = n.GetId(); bpstr += string.Format("{0}[{1}]", bClassName, nodeId); if (!string.IsNullOrEmpty(action)) { bpstr += string.Format(":{0}", action); } return bpstr; } } } #endif return string.Empty; }