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

#include <AssetInfoPanel.h>

+ Collaboration diagram for Olympe::AssetInfoPanel:

Public Member Functions

 AssetInfoPanel ()
 
 ~AssetInfoPanel ()
 
void LoadAsset (const std::string &filepath)
 
void Clear ()
 
void Render ()
 
bool HasAsset () const
 
const AssetMetadataGetAssetInfo () const
 
const std::string & GetLoadedFilepath () const
 

Private Member Functions

void RenderEntityBlueprintInfo ()
 
void RenderBehaviorTreeInfo ()
 
void RenderGenericInfo ()
 
void RenderErrorInfo ()
 

Private Attributes

AssetMetadatam_CurrentAsset
 
std::string m_LoadedFilepath
 

Detailed Description

Definition at line 17 of file AssetInfoPanel.h.

Constructor & Destructor Documentation

◆ AssetInfoPanel()

Olympe::AssetInfoPanel::AssetInfoPanel ( )

Definition at line 13 of file AssetInfoPanel.cpp.

◆ ~AssetInfoPanel()

Olympe::AssetInfoPanel::~AssetInfoPanel ( )

Definition at line 18 of file AssetInfoPanel.cpp.

Member Function Documentation

◆ Clear()

void Olympe::AssetInfoPanel::Clear ( )

Definition at line 37 of file AssetInfoPanel.cpp.

References m_CurrentAsset, and m_LoadedFilepath.

Referenced by LoadAsset().

+ Here is the caller graph for this function:

◆ GetAssetInfo()

const AssetMetadata & Olympe::AssetInfoPanel::GetAssetInfo ( ) const
inline

Definition at line 36 of file AssetInfoPanel.h.

References m_CurrentAsset.

◆ GetLoadedFilepath()

const std::string & Olympe::AssetInfoPanel::GetLoadedFilepath ( ) const
inline

Definition at line 39 of file AssetInfoPanel.h.

References m_LoadedFilepath.

◆ HasAsset()

bool Olympe::AssetInfoPanel::HasAsset ( ) const

Definition at line 171 of file AssetInfoPanel.cpp.

References m_CurrentAsset.

Referenced by Render().

+ Here is the caller graph for this function:

◆ LoadAsset()

void Olympe::AssetInfoPanel::LoadAsset ( const std::string &  filepath)

◆ Render()

void Olympe::AssetInfoPanel::Render ( )

◆ RenderBehaviorTreeInfo()

void Olympe::AssetInfoPanel::RenderBehaviorTreeInfo ( )
private

Definition at line 108 of file AssetInfoPanel.cpp.

References Olympe::AssetMetadata::description, Olympe::AssetMetadata::filepath, GetComponentTypeID_Static(), m_CurrentAsset, Olympe::AssetMetadata::name, Olympe::AssetMetadata::nodeCount, and Olympe::AssetMetadata::nodes.

Referenced by Render().

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

◆ RenderEntityBlueprintInfo()

void Olympe::AssetInfoPanel::RenderEntityBlueprintInfo ( )
private

Definition at line 76 of file AssetInfoPanel.cpp.

References Olympe::AssetMetadata::componentCount, Olympe::AssetMetadata::components, Olympe::AssetMetadata::description, Olympe::AssetMetadata::filepath, GetComponentTypeID_Static(), m_CurrentAsset, and Olympe::AssetMetadata::name.

Referenced by Render().

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

◆ RenderErrorInfo()

void Olympe::AssetInfoPanel::RenderErrorInfo ( )
private

Definition at line 157 of file AssetInfoPanel.cpp.

References Olympe::AssetMetadata::errorMessage, Olympe::AssetMetadata::filepath, GetComponentTypeID_Static(), and m_CurrentAsset.

Referenced by Render().

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

◆ RenderGenericInfo()

void Olympe::AssetInfoPanel::RenderGenericInfo ( )
private

Definition at line 139 of file AssetInfoPanel.cpp.

References Olympe::AssetMetadata::description, Olympe::AssetMetadata::filepath, GetComponentTypeID_Static(), m_CurrentAsset, Olympe::AssetMetadata::name, and Olympe::AssetMetadata::type.

Referenced by Render().

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

Member Data Documentation

◆ m_CurrentAsset

AssetMetadata* Olympe::AssetInfoPanel::m_CurrentAsset
private

◆ m_LoadedFilepath

std::string Olympe::AssetInfoPanel::m_LoadedFilepath
private

Definition at line 50 of file AssetInfoPanel.h.

Referenced by Clear(), GetLoadedFilepath(), and LoadAsset().


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