![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Exécute un graphe ATS Visual Scripting pour une entité sur un frame. More...
#include <VSGraphExecutor.h>
Static Public Member Functions | |
| static void | ExecuteFrame (EntityID entity, TaskRunnerComponent &runner, const TaskGraphTemplate &tmpl, LocalBlackboard &localBB, World *worldPtr, float dt) |
| Point d'entrée principal : exécute le graphe pour une entité. | |
Static Private Attributes | |
| static const int | MAX_SUBGRAPH_DEPTH = 4 |
| Out-of-class definition required in C++14 for ODR-used static const members. | |
Exécute un graphe ATS Visual Scripting pour une entité sur un frame.
Definition at line 111 of file VSGraphExecutor.h.
|
static |
Point d'entrée principal : exécute le graphe pour une entité.
| entity | ID de l'entité propriétaire du runner. |
| runner | Composant runtime mutable de l'entité (CurrentNodeID, BB, etc.). |
| tmpl | Template immutable du graphe. |
| localBB | Blackboard local de l'entité (initialisé depuis tmpl->Blackboard). |
| worldPtr | Pointeur vers World (peut être nullptr en tests). |
| dt | Delta-time du frame courant. |
Definition at line 37 of file VSGraphExecutor.cpp.
References Olympe::AtomicTask, Olympe::Branch, Olympe::Delay, Olympe::DoOnce, Olympe::EntryPoint, Olympe::GetBBValue, GetComponentTypeID_Static(), HandleAtomicTask(), HandleBranch(), HandleDelay(), HandleDoOnce(), HandleEntryPoint(), HandleGetBBValue(), HandleMathOp(), HandleSetBBValue(), HandleSubGraph(), HandleSwitch(), HandleVSSequence(), HandleWhile(), Olympe::MathOp, Olympe::MAX_STEPS_PER_FRAME, Olympe::NODE_INDEX_NONE, ResolveDataPins(), Olympe::SetBBValue, Olympe::SubGraph, Olympe::Switch, SYSTEM_LOG, Olympe::VSSequence, and Olympe::While.
Referenced by Olympe::TaskSystem::ExecuteVSFrame(), and HandleSubGraph().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Retourne l'ID du node cible sur un exec pin nommé pinName depuis sourceNodeID.
Retourne NODE_INDEX_NONE si aucune connexion trouvée.
Definition at line 159 of file VSGraphExecutor.cpp.
References GetComponentTypeID_Static(), Olympe::NODE_INDEX_NONE, and Olympe::ExecPinConnection::TargetNodeID.
Referenced by HandleAtomicTask(), HandleBranch(), HandleDelay(), HandleDoOnce(), HandleEntryPoint(), HandleGetBBValue(), HandleMathOp(), HandleSetBBValue(), HandleSubGraph(), HandleSwitch(), HandleVSSequence(), and HandleWhile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 770 of file VSGraphExecutor.cpp.
References Olympe::AtomicTaskRegistry::Create(), Olympe::AtomicTaskContext::Entity, Olympe::TaskRunnerComponent::Failure, FindExecTarget(), Olympe::AtomicTaskRegistry::Get(), GetComponentTypeID_Static(), Olympe::Input, Olympe::Literal, Olympe::LocalVariable, Olympe::NODE_INDEX_NONE, Olympe::DataPinDefinition::PinName, Olympe::Running, Olympe::TaskRunnerComponent::Success, Olympe::Success, and SYSTEM_LOG.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 317 of file VSGraphExecutor.cpp.
References Olympe::TaskValue::AsBool(), Olympe::Bool, Olympe::ConditionEvaluator::EvaluateAll(), Olympe::ConditionPresetEvaluator::EvaluateConditionChain(), FindExecTarget(), GetComponentTypeID_Static(), Olympe::Int, Olympe::ConditionPresetRegistry::Load(), Olympe::PopulateRuntimeEnvironmentFromBlackboard(), Olympe::PopulateRuntimeEnvironmentFromDataPins(), and SYSTEM_LOG.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 591 of file VSGraphExecutor.cpp.
References FindExecTarget(), GetComponentTypeID_Static(), and Olympe::NODE_INDEX_NONE.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 571 of file VSGraphExecutor.cpp.
References FindExecTarget(), GetComponentTypeID_Static(), and Olympe::NODE_INDEX_NONE.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 217 of file VSGraphExecutor.cpp.
References FindExecTarget(), and GetComponentTypeID_Static().
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 618 of file VSGraphExecutor.cpp.
References FindExecTarget(), GetComponentTypeID_Static(), Olympe::NODE_INDEX_NONE, and ReadBBValue().
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 677 of file VSGraphExecutor.cpp.
References Olympe::TaskValue::AsFloat(), FindExecTarget(), Olympe::Float, GetComponentTypeID_Static(), Olympe::Int, Olympe::NODE_INDEX_NONE, and SYSTEM_LOG.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 643 of file VSGraphExecutor.cpp.
References FindExecTarget(), GetComponentTypeID_Static(), Olympe::NODE_INDEX_NONE, SYSTEM_LOG, and WriteBBValue().
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 881 of file VSGraphExecutor.cpp.
References Olympe::TaskRunnerComponent::CurrentNodeID, ExecuteFrame(), FindExecTarget(), Olympe::AssetManager::Get(), GetComponentTypeID_Static(), Olympe::LocalBlackboard::InitializeFromEntries(), Olympe::Literal, Olympe::AssetManager::LoadTaskGraphFromFile(), Olympe::LocalVariable, MAX_SUBGRAPH_DEPTH, Olympe::NODE_INDEX_NONE, and SYSTEM_LOG.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 439 of file VSGraphExecutor.cpp.
References Olympe::TaskValue::AsString(), FindExecTarget(), GetComponentTypeID_Static(), Olympe::Int, Olympe::NODE_INDEX_NONE, and Olympe::String.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 494 of file VSGraphExecutor.cpp.
References Olympe::TaskNodeDefinition::ChildrenIDs, FindExecTarget(), GetComponentTypeID_Static(), and Olympe::NODE_INDEX_NONE.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 520 of file VSGraphExecutor.cpp.
References Olympe::TaskValue::AsBool(), Olympe::Bool, Olympe::TaskNodeDefinition::ConditionID, FindExecTarget(), GetComponentTypeID_Static(), Olympe::Int, and SYSTEM_LOG.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Lit une valeur BB depuis localBB avec support du scope "local:" et "global:".
Definition at line 200 of file VSGraphExecutor.cpp.
References GetComponentTypeID_Static().
Referenced by HandleGetBBValue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Résout les data pins entrantes d'un node et peuple runner.DataPinCache.
Definition at line 178 of file VSGraphExecutor.cpp.
References Olympe::DataPinEvaluator::EvaluateNodeInputPins(), GetComponentTypeID_Static(), and SYSTEM_LOG.
Referenced by ExecuteFrame().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Écrit une valeur BB dans localBB avec support du scope "local:".
Definition at line 206 of file VSGraphExecutor.cpp.
References GetComponentTypeID_Static().
Referenced by HandleSetBBValue().
Here is the call graph for this function:
Here is the caller graph for this function:Out-of-class definition required in C++14 for ODR-used static const members.
Definition at line 225 of file VSGraphExecutor.h.
Referenced by HandleSubGraph().