Minor codestyle fixes
This commit is contained in:
@@ -83,13 +83,13 @@ public:
|
|||||||
/// Checks if knowledge has a given goal (exact type match without base class check).
|
/// Checks if knowledge has a given goal (exact type match without base class check).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="type">The goal type.</param>
|
/// <param name="type">The goal type.</param>
|
||||||
/// <returns>True if has a given goal, otherwise false.</returns>
|
/// <returns>True if knowledge has a given goal, otherwise false.</returns>
|
||||||
API_FUNCTION() bool HasGoal(ScriptingTypeHandle type) const;
|
API_FUNCTION() bool HasGoal(ScriptingTypeHandle type) const;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks if knowledge has a given goal (exact type match without base class check).
|
/// Checks if knowledge has a given goal (exact type match without base class check).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>True if has a given goal, otherwise false.</returns>
|
/// <returns>True if knowledge has a given goal, otherwise false.</returns>
|
||||||
template<typename T>
|
template<typename T>
|
||||||
FORCE_INLINE bool HasGoal()
|
FORCE_INLINE bool HasGoal()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ void BehaviorTreeNode::Deserialize(DeserializeStream& stream, ISerializeModifier
|
|||||||
{
|
{
|
||||||
SerializableScriptingObject::Deserialize(stream, modifier);
|
SerializableScriptingObject::Deserialize(stream, modifier);
|
||||||
|
|
||||||
Name.Clear(); // Missing Name is assumes as unnamed node
|
Name.Clear(); // Missing Name is assumed as unnamed node
|
||||||
DESERIALIZE(Name);
|
DESERIALIZE(Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,7 +197,6 @@ BehaviorUpdateResult BehaviorTreeSequenceNode::Update(const BehaviorUpdateContex
|
|||||||
return BehaviorUpdateResult::Failed;
|
return BehaviorUpdateResult::Failed;
|
||||||
|
|
||||||
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
|
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
|
||||||
|
|
||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
case BehaviorUpdateResult::Success:
|
case BehaviorUpdateResult::Success:
|
||||||
@@ -232,7 +231,6 @@ BehaviorUpdateResult BehaviorTreeSelectorNode::Update(const BehaviorUpdateContex
|
|||||||
return BehaviorUpdateResult::Failed;
|
return BehaviorUpdateResult::Failed;
|
||||||
|
|
||||||
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
|
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
|
||||||
|
|
||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
case BehaviorUpdateResult::Success:
|
case BehaviorUpdateResult::Success:
|
||||||
|
|||||||
Reference in New Issue
Block a user