Skip to content

Struct Engine::ProjectContext

ClassList > Engine > ProjectContext

Per-registry project root used to resolve relative asset paths. More...

  • #include <ProjectPaths.hpp>

Public Attributes

Type Name
std::string projectFolder

Public Functions

Type Name
ProjectContext () = default
ProjectContext (std::string folder)

Detailed Description

The folder itself is machine-local state (it comes from the locally open project, e.g. ~/.config/rtype/projects.json) and must never be trusted from a committed file: scene/entity payloads store project-relative paths, and this resource anchors them back to disk on the current machine.

Public Attributes Documentation

variable projectFolder

std::string Engine::ProjectContext::projectFolder;

Public Functions Documentation

function ProjectContext [½]

Engine::ProjectContext::ProjectContext () = default

function ProjectContext [2/2]

inline explicit Engine::ProjectContext::ProjectContext (
    std::string folder
) 


The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Assets/ProjectPaths.hpp