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

BlueprintTemplate - Template metadata and data Stores a complete blueprint that can be reused as a template. More...

#include <TemplateManager.h>

+ Collaboration diagram for Olympe::BlueprintTemplate:

Public Member Functions

 BlueprintTemplate ()
 
json ToJson () const
 
bool SaveToFile (const std::string &filepath) const
 

Static Public Member Functions

static BlueprintTemplate FromJson (const json &j)
 
static BlueprintTemplate LoadFromFile (const std::string &filepath)
 

Public Attributes

std::string id
 
std::string name
 
std::string description
 
std::string category
 
std::string author
 
std::string version
 
json blueprintData
 
std::string thumbnailPath
 
time_t createdDate
 
time_t modifiedDate
 

Detailed Description

BlueprintTemplate - Template metadata and data Stores a complete blueprint that can be reused as a template.

Definition at line 24 of file TemplateManager.h.

Constructor & Destructor Documentation

◆ BlueprintTemplate()

Olympe::BlueprintTemplate::BlueprintTemplate ( )

Definition at line 24 of file TemplateManager.cpp.

Referenced by LoadFromFile().

+ Here is the caller graph for this function:

Member Function Documentation

◆ FromJson()

BlueprintTemplate Olympe::BlueprintTemplate::FromJson ( const json j)
static

Definition at line 47 of file TemplateManager.cpp.

References GetComponentTypeID_Static(), and id.

Referenced by LoadFromFile().

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

◆ LoadFromFile()

BlueprintTemplate Olympe::BlueprintTemplate::LoadFromFile ( const std::string &  filepath)
static

Definition at line 89 of file TemplateManager.cpp.

References BlueprintTemplate(), FromJson(), and GetComponentTypeID_Static().

Referenced by Olympe::TemplateManager::ScanTemplateDirectory().

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

◆ SaveToFile()

bool Olympe::BlueprintTemplate::SaveToFile ( const std::string &  filepath) const

Definition at line 65 of file TemplateManager.cpp.

References GetComponentTypeID_Static(), and ToJson().

+ Here is the call graph for this function:

◆ ToJson()

json Olympe::BlueprintTemplate::ToJson ( ) const

Definition at line 30 of file TemplateManager.cpp.

References author, blueprintData, category, createdDate, description, GetComponentTypeID_Static(), id, modifiedDate, name, thumbnailPath, and version.

Referenced by SaveToFile().

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

Member Data Documentation

◆ author

std::string Olympe::BlueprintTemplate::author

Definition at line 30 of file TemplateManager.h.

Referenced by ToJson().

◆ blueprintData

json Olympe::BlueprintTemplate::blueprintData

Definition at line 32 of file TemplateManager.h.

Referenced by ToJson().

◆ category

std::string Olympe::BlueprintTemplate::category

Definition at line 29 of file TemplateManager.h.

Referenced by ToJson().

◆ createdDate

time_t Olympe::BlueprintTemplate::createdDate

Definition at line 34 of file TemplateManager.h.

Referenced by ToJson().

◆ description

std::string Olympe::BlueprintTemplate::description

Definition at line 28 of file TemplateManager.h.

Referenced by ToJson().

◆ id

std::string Olympe::BlueprintTemplate::id

◆ modifiedDate

time_t Olympe::BlueprintTemplate::modifiedDate

Definition at line 35 of file TemplateManager.h.

Referenced by ToJson().

◆ name

std::string Olympe::BlueprintTemplate::name

Definition at line 27 of file TemplateManager.h.

Referenced by ToJson().

◆ thumbnailPath

std::string Olympe::BlueprintTemplate::thumbnailPath

Definition at line 33 of file TemplateManager.h.

Referenced by ToJson().

◆ version

std::string Olympe::BlueprintTemplate::version

Definition at line 31 of file TemplateManager.h.

Referenced by ToJson().


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