|
Infinity Engine v0.6.20
C++ API Documentation
|
Interface for loading and accessing procedural generation systems from .infinitycore files. More...
#include <InfinityCore.hpp>
Public Member Functions | |
| InfinityCore () | |
| Default constructor. | |
| InfinityCore (InfinityCore &&core) | |
| Move constructor. | |
| InfinityCore (const std::filesystem::path &filepath) | |
| Constructs an InfinityCore and loads the specified .infinitycore file. | |
| std::shared_ptr< Infinity::Procedural::ProceduralSystem > | getSystem (const std::string &path) |
| Retrieves a ProceduralSystem from the loaded core by path. | |
| std::string | getAssetFolderPath () |
| Gets the absolute folder path where assets are stored. | |
| const std::string & | getAssetRelativePath () |
| Gets the relative path to assets within the core. | |
Friends | |
| class | InfinityCoreImpl |
Interface for loading and accessing procedural generation systems from .infinitycore files.
InfinityCore provides a high-level interface to .infinitycore files, which contain ProceduralSystems and associated assets that support procedural generation. The class handles loading the core file and provides access to its contained systems and asset paths.
| Infinity::Engine::InfinityCore::InfinityCore | ( | ) |
Default constructor.
Constructs an InfinityCore without loading any core file.
| Infinity::Engine::InfinityCore::InfinityCore | ( | InfinityCore && | core | ) |
Move constructor.
| core | The InfinityCore object to move from. |
| Infinity::Engine::InfinityCore::InfinityCore | ( | const std::filesystem::path & | filepath | ) |
Constructs an InfinityCore and loads the specified .infinitycore file.
| filepath | Path to the .infinitycore file to load. |
| std::string Infinity::Engine::InfinityCore::getAssetFolderPath | ( | ) |
Gets the absolute folder path where assets are stored.
| const std::string & Infinity::Engine::InfinityCore::getAssetRelativePath | ( | ) |
Gets the relative path to assets within the core.
| std::shared_ptr< Infinity::Procedural::ProceduralSystem > Infinity::Engine::InfinityCore::getSystem | ( | const std::string & | path | ) |
Retrieves a ProceduralSystem from the loaded core by path.
| path | The path identifier of the system within the core file. |
|
friend |