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

#include <BehaviorTreeEditorPlugin.h>

+ Inheritance diagram for Olympe::BehaviorTreeEditorPlugin:
+ Collaboration diagram for Olympe::BehaviorTreeEditorPlugin:

Public Member Functions

 BehaviorTreeEditorPlugin ()
 
virtual ~BehaviorTreeEditorPlugin ()
 
std::string GetBlueprintType () const override
 
std::string GetDisplayName () const override
 
std::string GetDescription () const override
 
std::string GetIconPath () const override
 
std::string GetDefaultFolder () const override
 
nlohmann::json CreateNew (const std::string &name) override
 
bool CanHandle (const nlohmann::json &blueprint) const override
 
std::vector< ValidationErrorValidate (const nlohmann::json &blueprint) override
 
void RenderEditor (nlohmann::json &blueprintData, EditorContext_st &ctx) override
 
void RenderProperties (const nlohmann::json &blueprintData) override
 
void RenderToolbar (nlohmann::json &blueprintData) override
 
- Public Member Functions inherited from Olympe::BlueprintEditorPlugin
virtual ~BlueprintEditorPlugin ()=default
 

Private Member Functions

void RenderBehaviorTreeGraph (nlohmann::json &data, EditorContext_st &ctx)
 
std::string GetCurrentTimestamp ()
 

Detailed Description

Definition at line 14 of file BehaviorTreeEditorPlugin.h.

Constructor & Destructor Documentation

◆ BehaviorTreeEditorPlugin()

Olympe::BehaviorTreeEditorPlugin::BehaviorTreeEditorPlugin ( )

Definition at line 15 of file BehaviorTreeEditorPlugin.cpp.

◆ ~BehaviorTreeEditorPlugin()

Olympe::BehaviorTreeEditorPlugin::~BehaviorTreeEditorPlugin ( )
virtual

Definition at line 19 of file BehaviorTreeEditorPlugin.cpp.

Member Function Documentation

◆ CanHandle()

bool Olympe::BehaviorTreeEditorPlugin::CanHandle ( const nlohmann::json blueprint) const
overridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 75 of file BehaviorTreeEditorPlugin.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ CreateNew()

json Olympe::BehaviorTreeEditorPlugin::CreateNew ( const std::string &  name)
overridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 41 of file BehaviorTreeEditorPlugin.cpp.

References GetComponentTypeID_Static(), and GetCurrentTimestamp().

+ Here is the call graph for this function:

◆ GetBlueprintType()

std::string Olympe::BehaviorTreeEditorPlugin::GetBlueprintType ( ) const
inlineoverridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 21 of file BehaviorTreeEditorPlugin.h.

◆ GetCurrentTimestamp()

std::string Olympe::BehaviorTreeEditorPlugin::GetCurrentTimestamp ( )
private

Definition at line 23 of file BehaviorTreeEditorPlugin.cpp.

References GetComponentTypeID_Static().

Referenced by CreateNew().

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

◆ GetDefaultFolder()

std::string Olympe::BehaviorTreeEditorPlugin::GetDefaultFolder ( ) const
inlineoverridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 25 of file BehaviorTreeEditorPlugin.h.

◆ GetDescription()

std::string Olympe::BehaviorTreeEditorPlugin::GetDescription ( ) const
inlineoverridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 23 of file BehaviorTreeEditorPlugin.h.

◆ GetDisplayName()

std::string Olympe::BehaviorTreeEditorPlugin::GetDisplayName ( ) const
inlineoverridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 22 of file BehaviorTreeEditorPlugin.h.

◆ GetIconPath()

std::string Olympe::BehaviorTreeEditorPlugin::GetIconPath ( ) const
inlineoverridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 24 of file BehaviorTreeEditorPlugin.h.

◆ RenderBehaviorTreeGraph()

void Olympe::BehaviorTreeEditorPlugin::RenderBehaviorTreeGraph ( nlohmann::json data,
EditorContext_st ctx 
)
private

Definition at line 222 of file BehaviorTreeEditorPlugin.cpp.

References GetComponentTypeID_Static().

Referenced by RenderEditor().

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

◆ RenderEditor()

void Olympe::BehaviorTreeEditorPlugin::RenderEditor ( nlohmann::json blueprintData,
EditorContext_st ctx 
)
overridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 174 of file BehaviorTreeEditorPlugin.cpp.

References GetComponentTypeID_Static(), and RenderBehaviorTreeGraph().

+ Here is the call graph for this function:

◆ RenderProperties()

void Olympe::BehaviorTreeEditorPlugin::RenderProperties ( const nlohmann::json blueprintData)
overridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 185 of file BehaviorTreeEditorPlugin.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ RenderToolbar()

void Olympe::BehaviorTreeEditorPlugin::RenderToolbar ( nlohmann::json blueprintData)
overridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 207 of file BehaviorTreeEditorPlugin.cpp.

◆ Validate()

std::vector< ValidationError > Olympe::BehaviorTreeEditorPlugin::Validate ( const nlohmann::json blueprint)
overridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 90 of file BehaviorTreeEditorPlugin.cpp.

References Olympe::Error, and GetComponentTypeID_Static().

+ Here is the call graph for this function:

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