Minor tweaks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user