Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | Private Member Functions | List of all members
BehaviorTreeDependencyScanner Class Reference

#include <BehaviorTreeDependencyScanner.h>

Classes

struct  BTDependency
 

Static Public Member Functions

static std::vector< BTDependencyScanPrefab (const PrefabBlueprint &prefab)
 
static std::vector< BTDependencyScanPrefabs (const std::vector< std::string > &prefabNames)
 
static std::set< std::string > ExtractPrefabsFromLevel (const nlohmann::json &levelJson)
 
static uint32_t GenerateTreeIdFromPath (const std::string &treePath)
 

Private Member Functions

 BehaviorTreeDependencyScanner ()=delete
 

Detailed Description

Definition at line 22 of file BehaviorTreeDependencyScanner.h.

Constructor & Destructor Documentation

◆ BehaviorTreeDependencyScanner()

BehaviorTreeDependencyScanner::BehaviorTreeDependencyScanner ( )
privatedelete

Member Function Documentation

◆ ExtractPrefabsFromLevel()

std::set< std::string > BehaviorTreeDependencyScanner::ExtractPrefabsFromLevel ( const nlohmann::json levelJson)
static

Definition at line 171 of file BehaviorTreeDependencyScanner.cpp.

References GetComponentTypeID_Static(), and IsValidPrefabName().

Referenced by World::LoadLevelDependencies().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GenerateTreeIdFromPath()

uint32_t BehaviorTreeDependencyScanner::GenerateTreeIdFromPath ( const std::string &  treePath)
static

Definition at line 21 of file BehaviorTreeDependencyScanner.cpp.

References GetComponentTypeID_Static().

Referenced by BehaviorTreeManager::GetTreeIdFromPath(), and ScanPrefab().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScanPrefab()

std::vector< BehaviorTreeDependencyScanner::BTDependency > BehaviorTreeDependencyScanner::ScanPrefab ( const PrefabBlueprint prefab)
static

Definition at line 67 of file BehaviorTreeDependencyScanner.cpp.

References GenerateTreeIdFromPath(), GetComponentTypeID_Static(), IsValidBehaviorTreePath(), and ComponentParameter::String.

Referenced by ScanPrefabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScanPrefabs()

std::vector< BehaviorTreeDependencyScanner::BTDependency > BehaviorTreeDependencyScanner::ScanPrefabs ( const std::vector< std::string > &  prefabNames)
static

Definition at line 104 of file BehaviorTreeDependencyScanner.cpp.

References PrefabRegistry::Find(), PrefabFactory::Get(), GetComponentTypeID_Static(), PrefabFactory::GetPrefabRegistry(), and ScanPrefab().

Referenced by World::LoadLevelDependencies().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: