|
NoJobEngine 2.0.7
|
#include <BTGameplay.h>
Public Attributes | |
| std::string | BehaviorTreeAsset = "Default" |
| float | PatrolRadius = 3.0f |
| float | PatrolWaitSeconds = 0.4f |
| std::string | NeuralModelName = "" |
| std::string | NeuralTargetTag = "NeuralTarget" |
Protected Member Functions | |
| std::shared_ptr< const BTTree > | CreateTree () override |
| void | OnTreeStarted (BTContext &ctx) override |
| void | OnTreeStopped (BTContext &) override |
| Protected Member Functions inherited from NoJob::ScriptableEntity | |
| void | TickAIDebug (float dt) |
| void | SetAIDebugState (const char *state) |
| NativeScriptComponent & | ScriptComponent () |
| float | GetFloat (const std::string &name, float fallback=0.0f) const |
| int | GetInt (const std::string &name, int fallback=0) const |
| bool | GetBool (const std::string &name, bool fallback=false) const |
| glm::vec3 | GetVec3 (const std::string &name, glm::vec3 fallback={}) const |
Additional Inherited Members | |
| Public Member Functions inherited from NoJob::BTScriptController | |
| void | OnCreate () final |
| Called when the runtime script instance is created. | |
| void | OnUpdate (float deltaTime) final |
| Called during scene updates. | |
| void | OnDestroy () final |
| Called before the runtime script instance is destroyed. | |
| const BTDebugSnapshot & | GetDebugSnapshot () const noexcept |
| BTInstance * | GetBehaviorTreeInstance () noexcept |
| const BTInstance * | GetBehaviorTreeInstance () const noexcept |
| BTStatus | GetLastBehaviorTreeStatus () const noexcept |
| Public Member Functions inherited from NoJob::ScriptableEntity | |
| virtual | ~ScriptableEntity ()=default |
| virtual bool | GetNeuralDebugSnapshot (NeuralAgent::Snapshot &out) const |
| Provides live neural diagnostics across project DLL boundaries. | |
| virtual void | RegisterBehaviorTreeBindings (BTNativeRegistry &) const |
| const std::string & | GetAIDebugState () const |
| const std::string & | GetAIDebugPreviousState () const |
| float | GetAIDebugTimeInState () const |
| float | GetAIDebugRuntimeSeconds () const |
| const std::vector< AIStateTransition > & | GetAIDebugTransitions () const |
| template<typename T> | |
| T & | GetComponent () |
| template<typename T> | |
| bool | HasComponent () const |
| Entity | GetEntity () const |
Definition at line 153 of file BTGameplay.h.
|
inlineoverrideprotectedvirtual |
Implements NoJob::BTScriptController.
Definition at line 161 of file BTGameplay.h.
References NoJob::NeuralAgent::Activations(), NoJob::NeuralAgent::Snapshot::activations, NoJob::BTContext::ActiveNode(), BehaviorTreeAsset, NoJob::BTContext::Blackboard(), NoJob::BTAssetPath(), NoJob::NeuralAgent::Clear(), NoJob::CreateBTGameplayRegistry(), NoJob::NeuralAgent::Snapshot::distance, NoJob::Failure, NoJob::ScriptableEntity::GetComponent(), NoJob::ScriptableEntity::GetEntity(), NoJob::Entity::GetScene(), NoJob::Entity::HasComponent(), NoJob::ScriptableEntity::HasComponent(), NoJob::NeuralAgent::Snapshot::inputs, NoJob::BTAsset::Load(), NoJob::Neural::NeuralNetwork::Load(), NoJob::NeuralAgent::Snapshot::model, NoJob::NeuralAssetPath(), NeuralModelName, NeuralTargetTag, NoJob::NeuralAgent::Snapshot::outputs, NoJob::TransformComponent::Position, NoJob::NeuralAgent::Publish(), NoJob::Running, NoJob::BTBlackboard::Set(), NoJob::BTContext::SetCancellation(), NoJob::NeuralAgent::Snapshot::status, NoJob::Success, and NoJob::TagComponent::Tag.
|
inlineoverrideprotectedvirtual |
Reimplemented from NoJob::BTScriptController.
Definition at line 271 of file BTGameplay.h.
References NoJob::BTContext::Blackboard(), NoJob::NeuralAgent::Clear(), NoJob::ScriptableEntity::GetEntity(), PatrolRadius, PatrolWaitSeconds, and NoJob::BTBlackboard::Set().
|
inlineoverrideprotectedvirtual |
Reimplemented from NoJob::BTScriptController.
Definition at line 277 of file BTGameplay.h.
References NoJob::NeuralAgent::Clear(), and NoJob::ScriptableEntity::GetEntity().
| std::string NoJob::BTAssetAgent::BehaviorTreeAsset = "Default" |
Definition at line 155 of file BTGameplay.h.
Referenced by CreateTree(), and NoJob::RegisterBTAssetAgent().
| std::string NoJob::BTAssetAgent::NeuralModelName = "" |
Definition at line 158 of file BTGameplay.h.
Referenced by CreateTree(), and NoJob::RegisterBTAssetAgent().
| std::string NoJob::BTAssetAgent::NeuralTargetTag = "NeuralTarget" |
Definition at line 159 of file BTGameplay.h.
Referenced by CreateTree(), and NoJob::RegisterBTAssetAgent().
| float NoJob::BTAssetAgent::PatrolRadius = 3.0f |
Definition at line 156 of file BTGameplay.h.
Referenced by OnTreeStarted(), and NoJob::RegisterBTAssetAgent().
| float NoJob::BTAssetAgent::PatrolWaitSeconds = 0.4f |
Definition at line 157 of file BTGameplay.h.
Referenced by OnTreeStarted(), and NoJob::RegisterBTAssetAgent().