Skip to content

Commit

Permalink
3.6.30
Browse files Browse the repository at this point in the history
  • Loading branch information
cainhuang committed Apr 21, 2017
1 parent ffc3f04 commit e9331d8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
Binary file modified docs/behaviac.chm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ protected override void GenerateConstructor(Node node, StringWriter stream, stri

if (referencedBehavior.Task != null)
{
stream.WriteLine("{0}\t\t\tm_taskMethod = AgentMeta::ParseMethod(\"{1}\");", indent, referencedBehavior.Task.GetExportValue());
string method = referencedBehavior.Task.GetExportValue();
method = method.Replace("\"", "\\\"");
stream.WriteLine("{0}\t\t\tm_taskMethod = AgentMeta::ParseMethod(\"{1}\");", indent, method);
stream.WriteLine("{0}\t\t\tBEHAVIAC_ASSERT(m_taskMethod);", indent);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ protected override void GenerateConstructor(Node node, StringWriter stream, stri

if (task.Prototype != null)
{
stream.WriteLine("{0}\t\t\tthis->m_task = AgentMeta::ParseMethod(\"{1}\");", indent, task.Prototype.GetExportValue());
string method = task.Prototype.GetExportValue();
method = method.Replace("\"", "\\\"");
stream.WriteLine("{0}\t\t\tthis->m_task = AgentMeta::ParseMethod(\"{1}\");", indent, method);
stream.WriteLine("{0}\t\t\tBEHAVIAC_ASSERT(this->m_task != NULL);", indent);
stream.WriteLine("{0}\t\t\tthis->m_bHTN = {1};", indent, task.IsHTN ? "true" : "false");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ protected override void GenerateConstructor(Node node, StringWriter stream, stri

if (pReferencedBehavior.Task != null)
{
stream.WriteLine("{0}\t\t\tthis.m_taskMethod = AgentMeta.ParseMethod(\"{1}\");", indent, pReferencedBehavior.Task.GetExportValue());
string method = pReferencedBehavior.Task.GetExportValue();
method = method.Replace("\"", "\\\"");
stream.WriteLine("{0}\t\t\tthis.m_taskMethod = AgentMeta.ParseMethod(\"{1}\");", indent, method);
stream.WriteLine("{0}\t\t\tDebug.Check(this.m_taskMethod != null);", indent);
}
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ protected override void GenerateConstructor(Node node, StringWriter stream, stri

if (task.Prototype != null)
{
stream.WriteLine("{0}\t\t\tthis.m_task = AgentMeta.ParseMethod(\"{1}\");", indent, task.Prototype.GetExportValue());
string method = task.Prototype.GetExportValue();
method = method.Replace("\"", "\\\"");
stream.WriteLine("{0}\t\t\tthis.m_task = AgentMeta.ParseMethod(\"{1}\");", indent, method);
stream.WriteLine("{0}\t\t\tDebug.Check(this.m_task != null);", indent);
stream.WriteLine("{0}\t\t\tthis.m_bHTN = {1};", indent, task.IsHTN ? "true" : "false");
}
Expand Down

0 comments on commit e9331d8

Please sign in to comment.