Uranus  1.0.1.0
Uranus is a GameEngine written in C++
Loading...
Searching...
No Matches
tson::Project Class Reference
Collaboration diagram for tson::Project:
[legend]

Public Member Functions

 Project (const fs::path &path, std::unique_ptr< tson::IJson > jsonParser=std::make_unique< tson::Json11 >())
 
 Project (std::unique_ptr< tson::IJson > jsonParser=std::make_unique< tson::Json11 >())
 
tson::TiledClassgetClass (std::string_view name)
 
const ProjectDatagetData () const
 
tson::EnumDefinitiongetEnumDefinition (std::string_view name)
 
const std::vector< ProjectFolder > & getFolders () const
 
const fs::path & getPath () const
 
void parse ()
 
bool parse (const fs::path &path)
 

Private Member Functions

void parseJson (IJson &json)
 

Private Attributes

ProjectData m_data
 
std::vector< ProjectFolderm_folders
 
std::unique_ptr< IJsonm_json = nullptr
 
fs::path m_path
 

Member Function Documentation

◆ parse()

void tson::Project::parse ( )
inline

Parses preloaded json data. Only used during tests involving project jsons not actually read from files

Returns

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