Finality Engine
Loading...
Searching...
No Matches
FINALITY::Project Class Reference

Owns project identity, paths and saved configuration. More...

#include <Project.h>

Public Member Functions

bool Create (const std::filesystem::path &location, const std::string &name, const std::filesystem::path &templateAssets={}, bool starterTemplate=true)
bool Open (const std::filesystem::path &path)
bool Save () const
bool SaveSettings () const
bool LoadSettings ()
void SetName (const std::string &name)
bool IsOpen () const
const std::filesystem::path & GetPath () const
std::filesystem::path GetDirectory () const
std::filesystem::path GetAssetsDirectory () const
const std::string & GetName () const

Public Attributes

std::string StartupScene = "Assets/Scenes/Main.fscene"
ProjectSettings Settings

Detailed Description

Owns project identity, paths and saved configuration.

A project descriptor connects the project name, project directory, startup scene and settings used by editor workflows. Generated IDE files belong to the project root while transient native build files remain in .Finality.

Usage
Open or create a project before invoking project asset workflows. Save authored settings explicitly. Project naming feeds the generated solution and external-editor workspace names.

Definition at line 29 of file Project.h.

Member Function Documentation

◆ Create()

bool FINALITY::Project::Create ( const std::filesystem::path & location,
const std::string & name,
const std::filesystem::path & templateAssets = {},
bool starterTemplate = true )

◆ Open()

bool FINALITY::Project::Open ( const std::filesystem::path & path)

◆ Save()

bool FINALITY::Project::Save ( ) const

◆ SaveSettings()

bool FINALITY::Project::SaveSettings ( ) const

◆ LoadSettings()

bool FINALITY::Project::LoadSettings ( )

◆ SetName()

void FINALITY::Project::SetName ( const std::string & name)
inline

Definition at line 38 of file Project.h.

◆ IsOpen()

bool FINALITY::Project::IsOpen ( ) const
inline

Definition at line 39 of file Project.h.

◆ GetPath()

const std::filesystem::path & FINALITY::Project::GetPath ( ) const
inline

Definition at line 40 of file Project.h.

◆ GetDirectory()

std::filesystem::path FINALITY::Project::GetDirectory ( ) const
inline

Definition at line 41 of file Project.h.

◆ GetAssetsDirectory()

std::filesystem::path FINALITY::Project::GetAssetsDirectory ( ) const
inline

Definition at line 42 of file Project.h.

◆ GetName()

const std::string & FINALITY::Project::GetName ( ) const
inline

Definition at line 43 of file Project.h.

Member Data Documentation

◆ StartupScene

std::string FINALITY::Project::StartupScene = "Assets/Scenes/Main.fscene"

Definition at line 44 of file Project.h.

◆ Settings

ProjectSettings FINALITY::Project::Settings

Definition at line 45 of file Project.h.


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