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).
|
||||
/// </summary>
|
||||
/// <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;
|
||||
|
||||
/// <summary>
|
||||
/// Checks if knowledge has a given goal (exact type match without base class check).
|
||||
/// </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>
|
||||
FORCE_INLINE bool HasGoal()
|
||||
{
|
||||
|
||||
@@ -140,7 +140,7 @@ void BehaviorTreeNode::Deserialize(DeserializeStream& stream, ISerializeModifier
|
||||
{
|
||||
SerializableScriptingObject::Deserialize(stream, modifier);
|
||||
|
||||
Name.Clear(); // Missing Name is assumes as unnamed node
|
||||
Name.Clear(); // Missing Name is assumed as unnamed node
|
||||
DESERIALIZE(Name);
|
||||
}
|
||||
|
||||
@@ -197,7 +197,6 @@ BehaviorUpdateResult BehaviorTreeSequenceNode::Update(const BehaviorUpdateContex
|
||||
return BehaviorUpdateResult::Failed;
|
||||
|
||||
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
|
||||
|
||||
switch (result)
|
||||
{
|
||||
case BehaviorUpdateResult::Success:
|
||||
@@ -232,7 +231,6 @@ BehaviorUpdateResult BehaviorTreeSelectorNode::Update(const BehaviorUpdateContex
|
||||
return BehaviorUpdateResult::Failed;
|
||||
|
||||
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
|
||||
|
||||
switch (result)
|
||||
{
|
||||
case BehaviorUpdateResult::Success:
|
||||
|
||||
Reference in New Issue
Block a user