Minor tweaks

This commit is contained in:
Wojtek Figat
2023-09-25 11:00:49 +02:00
parent 626bdf2e37
commit b2ec235f01
5 changed files with 6 additions and 5 deletions

View File

@@ -71,7 +71,6 @@ void BehaviorService::Dispose()
Behavior::Behavior(const SpawnParams& params)
: Script(params)
{
_tickLateUpdate = 1; // TODO: run Behavior via Job System (use Engine::UpdateGraph)
_knowledge.Behavior = this;
Tree.Changed.Bind<Behavior, &Behavior::ResetLogic>(this);
}

View File

@@ -358,7 +358,7 @@ public:
};
/// <summary>
/// Adds cooldown in between node executions.
/// Adds cooldown in between node executions. Blocks node execution for a given duration after last run.
/// </summary>
API_CLASS(Sealed) class FLAXENGINE_API BehaviorTreeCooldownDecorator : public BehaviorTreeDecorator
{
@@ -403,7 +403,7 @@ API_CLASS(Sealed) class FLAXENGINE_API BehaviorTreeKnowledgeConditionalDecorator
API_FIELD(Attributes="EditorOrder(0)")
BehaviorKnowledgeSelectorAny ValueA;
// The second value to use for comparision.
// The second value to use for comparision (constant).
API_FIELD(Attributes="EditorOrder(10)")
float ValueB = 0.0f;

View File

@@ -61,7 +61,7 @@ public:
/// <summary>
/// Gets the navmesh runtime object that matches with properties.
/// </summary>
NavMeshRuntime* GetRuntime(bool createIfMissing = true) const;
API_FUNCTION() NavMeshRuntime* GetRuntime(bool createIfMissing = true) const;
private:
void AddTiles();

View File

@@ -26,7 +26,7 @@ namespace
}
NavMeshRuntime::NavMeshRuntime(const NavMeshProperties& properties)
: ScriptingObject(SpawnParams(Guid::Empty, NavMeshRuntime::TypeInitializer))
: ScriptingObject(SpawnParams(Guid::New(), NavMeshRuntime::TypeInitializer))
, Properties(properties)
{
_navMesh = nullptr;