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::EntityPrefabEditorPlugin Class Reference

#include <EntityPrefabEditorPlugin.h>

+ Inheritance diagram for Olympe::EntityPrefabEditorPlugin:
+ Collaboration diagram for Olympe::EntityPrefabEditorPlugin:

Public Member Functions

 EntityPrefabEditorPlugin ()
 
virtual ~EntityPrefabEditorPlugin ()
 
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 RenderComponentPropertiesEditor (nlohmann::json &properties, EditorContext_st &ctx)
 
void AddComponentToBlueprint (nlohmann::json &blueprintData, const std::string &type)
 
std::vector< std::string > GetAvailableComponentTypes ()
 
std::string GetCurrentTimestamp ()
 

Detailed Description

Definition at line 13 of file EntityPrefabEditorPlugin.h.

Constructor & Destructor Documentation

◆ EntityPrefabEditorPlugin()

Olympe::EntityPrefabEditorPlugin::EntityPrefabEditorPlugin ( )

Definition at line 16 of file EntityPrefabEditorPlugin.cpp.

◆ ~EntityPrefabEditorPlugin()

Olympe::EntityPrefabEditorPlugin::~EntityPrefabEditorPlugin ( )
virtual

Definition at line 20 of file EntityPrefabEditorPlugin.cpp.

Member Function Documentation

◆ AddComponentToBlueprint()

void Olympe::EntityPrefabEditorPlugin::AddComponentToBlueprint ( nlohmann::json blueprintData,
const std::string &  type 
)
private

Definition at line 285 of file EntityPrefabEditorPlugin.cpp.

References GetComponentTypeID_Static().

Referenced by RenderEditor().

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

◆ CanHandle()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 81 of file EntityPrefabEditorPlugin.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ CreateNew()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 42 of file EntityPrefabEditorPlugin.cpp.

References GetComponentTypeID_Static(), and GetCurrentTimestamp().

+ Here is the call graph for this function:

◆ GetAvailableComponentTypes()

std::vector< std::string > Olympe::EntityPrefabEditorPlugin::GetAvailableComponentTypes ( )
private

Definition at line 294 of file EntityPrefabEditorPlugin.cpp.

Referenced by RenderEditor().

+ Here is the caller graph for this function:

◆ GetBlueprintType()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 20 of file EntityPrefabEditorPlugin.h.

◆ GetCurrentTimestamp()

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

Definition at line 24 of file EntityPrefabEditorPlugin.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::EntityPrefabEditorPlugin::GetDefaultFolder ( ) const
inlineoverridevirtual

Implements Olympe::BlueprintEditorPlugin.

Definition at line 24 of file EntityPrefabEditorPlugin.h.

◆ GetDescription()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 22 of file EntityPrefabEditorPlugin.h.

◆ GetDisplayName()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 21 of file EntityPrefabEditorPlugin.h.

◆ GetIconPath()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 23 of file EntityPrefabEditorPlugin.h.

◆ RenderComponentPropertiesEditor()

void Olympe::EntityPrefabEditorPlugin::RenderComponentPropertiesEditor ( nlohmann::json properties,
EditorContext_st ctx 
)
private

Definition at line 227 of file EntityPrefabEditorPlugin.cpp.

References GetComponentTypeID_Static(), and RenderComponentPropertiesEditor().

Referenced by RenderComponentPropertiesEditor(), and RenderEditor().

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

◆ RenderEditor()

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

◆ RenderProperties()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 205 of file EntityPrefabEditorPlugin.cpp.

◆ RenderToolbar()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 219 of file EntityPrefabEditorPlugin.cpp.

◆ Validate()

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

Implements Olympe::BlueprintEditorPlugin.

Definition at line 94 of file EntityPrefabEditorPlugin.cpp.

References Olympe::Error, GetComponentTypeID_Static(), and Olympe::ValidationError::nodeId.

+ Here is the call graph for this function:

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