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

EditorContext - Singleton managing editor mode and capabilities Provides global access to current editor configuration. More...

#include <EditorContext.h>

+ Collaboration diagram for Olympe::EditorContext:

Public Member Functions

void InitializeRuntime ()
 
void InitializeStandalone ()
 
const EditorCapabilitiesGetCapabilities () const
 
bool IsRuntime () const
 
bool IsStandalone () const
 
bool CanCreate () const
 
bool CanEdit () const
 
bool CanDelete () const
 
bool CanLink () const
 
bool CanSave () const
 
bool ShowEntityContext () const
 

Static Public Member Functions

static EditorContextInstance ()
 
static EditorContextGet ()
 

Private Member Functions

 EditorContext ()
 
 ~EditorContext ()
 
 EditorContext (const EditorContext &)=delete
 
EditorContextoperator= (const EditorContext &)=delete
 

Private Attributes

EditorCapabilities m_Capabilities
 

Detailed Description

EditorContext - Singleton managing editor mode and capabilities Provides global access to current editor configuration.

Definition at line 71 of file EditorContext.h.

Constructor & Destructor Documentation

◆ EditorContext() [1/2]

Olympe::EditorContext::EditorContext ( )
private

Definition at line 16 of file EditorContext.cpp.

References m_Capabilities, and Olympe::EditorCapabilities::Standalone().

+ Here is the call graph for this function:

◆ ~EditorContext()

Olympe::EditorContext::~EditorContext ( )
private

Definition at line 23 of file EditorContext.cpp.

◆ EditorContext() [2/2]

Olympe::EditorContext::EditorContext ( const EditorContext )
privatedelete

Member Function Documentation

◆ CanCreate()

bool Olympe::EditorContext::CanCreate ( ) const
inline

Definition at line 86 of file EditorContext.h.

References Olympe::EditorCapabilities::canCreate, and m_Capabilities.

Referenced by Olympe::NodeGraphPanel::RenderGraph().

+ Here is the caller graph for this function:

◆ CanDelete()

bool Olympe::EditorContext::CanDelete ( ) const
inline

Definition at line 88 of file EditorContext.h.

References Olympe::EditorCapabilities::canDelete, and m_Capabilities.

◆ CanEdit()

bool Olympe::EditorContext::CanEdit ( ) const
inline

Definition at line 87 of file EditorContext.h.

References Olympe::EditorCapabilities::canEdit, and m_Capabilities.

Referenced by Olympe::NodeGraphPanel::RenderGraph().

+ Here is the caller graph for this function:

◆ CanLink()

bool Olympe::EditorContext::CanLink ( ) const
inline

Definition at line 89 of file EditorContext.h.

References Olympe::EditorCapabilities::canLink, and m_Capabilities.

◆ CanSave()

bool Olympe::EditorContext::CanSave ( ) const
inline

Definition at line 90 of file EditorContext.h.

References Olympe::EditorCapabilities::canSave, and m_Capabilities.

◆ Get()

static EditorContext & Olympe::EditorContext::Get ( )
inlinestatic

Definition at line 75 of file EditorContext.h.

References Instance().

Referenced by Olympe::NodeGraphPanel::HandleNodeInteractions(), Olympe::BlueprintEditor::InitializeRuntimeEditor(), Olympe::BlueprintEditor::InitializeStandaloneEditor(), and Olympe::NodeGraphPanel::RenderGraph().

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

◆ GetCapabilities()

const EditorCapabilities & Olympe::EditorContext::GetCapabilities ( ) const
inline

Definition at line 82 of file EditorContext.h.

References m_Capabilities.

◆ InitializeRuntime()

void Olympe::EditorContext::InitializeRuntime ( )

Definition at line 27 of file EditorContext.cpp.

References m_Capabilities, and Olympe::EditorCapabilities::Runtime().

Referenced by Olympe::BlueprintEditor::InitializeRuntimeEditor().

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

◆ InitializeStandalone()

void Olympe::EditorContext::InitializeStandalone ( )

Definition at line 33 of file EditorContext.cpp.

References m_Capabilities, and Olympe::EditorCapabilities::Standalone().

Referenced by Olympe::BlueprintEditor::InitializeStandaloneEditor().

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

◆ Instance()

EditorContext & Olympe::EditorContext::Instance ( )
static

Definition at line 10 of file EditorContext.cpp.

References GetComponentTypeID_Static().

Referenced by Get().

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

◆ IsRuntime()

bool Olympe::EditorContext::IsRuntime ( ) const
inline

Definition at line 83 of file EditorContext.h.

References Olympe::EditorCapabilities::isRuntime, and m_Capabilities.

◆ IsStandalone()

bool Olympe::EditorContext::IsStandalone ( ) const
inline

Definition at line 84 of file EditorContext.h.

References Olympe::EditorCapabilities::isRuntime, and m_Capabilities.

◆ operator=()

EditorContext & Olympe::EditorContext::operator= ( const EditorContext )
privatedelete

◆ ShowEntityContext()

bool Olympe::EditorContext::ShowEntityContext ( ) const
inline

Member Data Documentation

◆ m_Capabilities

EditorCapabilities Olympe::EditorContext::m_Capabilities
private

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