Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Macros | Functions
BehaviorTreeDependencyScanner.cpp File Reference
#include "BehaviorTreeDependencyScanner.h"
#include "../PrefabScanner.h"
#include "../prefabfactory.h"
#include "../third_party/nlohmann/json.hpp"
#include <iostream>
#include <algorithm>
#include <cctype>
+ Include dependency graph for BehaviorTreeDependencyScanner.cpp:

Go to the source code of this file.

Macros

#define REGISTER_PREFAB(Name, BuilderLambda)
 

Functions

static bool IsValidBehaviorTreePath (const std::string &treePath)
 
static bool IsValidPrefabName (const std::string &prefabName)
 

Macro Definition Documentation

◆ REGISTER_PREFAB

#define REGISTER_PREFAB (   Name,
  BuilderLambda 
)
Value:
namespace { \
struct AutoRegister##Name { \
AutoRegister##Name() { \
PrefabFactory::Get().RegisterPrefab(#Name, BuilderLambda); \
} \
}; \
AutoRegister##Name global_##Name; \
}
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
Classe utilitaire qui enregistre la classe T dans la fabrique lors de son initialisation statique.

Function Documentation

◆ IsValidBehaviorTreePath()

static bool IsValidBehaviorTreePath ( const std::string treePath)
static

Definition at line 36 of file BehaviorTreeDependencyScanner.cpp.

References GetComponentTypeID_Static().

Referenced by BehaviorTreeDependencyScanner::ScanPrefab().

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

◆ IsValidPrefabName()

static bool IsValidPrefabName ( const std::string prefabName)
static

Definition at line 146 of file BehaviorTreeDependencyScanner.cpp.

References GetComponentTypeID_Static().

Referenced by BehaviorTreeDependencyScanner::ExtractPrefabsFromLevel().

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