Infinity Engine v0.6.20
C++ API Documentation
Loading...
Searching...
No Matches
AssetLoadInfo.hpp
1#pragma once
2
3#include <Infinity/api.h>
4#include <Infinity/Types/TypeID.hpp>
5
6#include <string>
7
8namespace Infinity::Assets
9{
10
22 struct INFINITY_API_PUBLIC AssetLoadInfo
23 {
36 const Infinity::Types::TypeID& assetType,
37 const std::string& corePath,
38 const std::string& loadPrefix,
39 const std::string& assetPath
40 );
41
51 AssetLoadInfo(const Infinity::Types::TypeID& assetType, const std::string& assetPath);
52
59
65 std::string corePath;
66
73 std::string loadPrefix;
74
78 std::string assetPath;
79 };
80
81}
Definition Asset.hpp:11
Encapsulates the information required to load an asset in the Infinity engine.
Definition AssetLoadInfo.hpp:23
std::string assetPath
The relative path to the specific asset file being loaded.
Definition AssetLoadInfo.hpp:78
AssetLoadInfo(const Infinity::Types::TypeID &assetType, const std::string &corePath, const std::string &loadPrefix, const std::string &assetPath)
Constructs an AssetLoadInfo with complete path specification.
AssetLoadInfo(const Infinity::Types::TypeID &assetType, const std::string &assetPath)
Constructs an AssetLoadInfo with simplified path specification.
std::string corePath
The base directory path where assets are stored.
Definition AssetLoadInfo.hpp:65
std::string loadPrefix
Additional path component prepended to the asset path.
Definition AssetLoadInfo.hpp:73
Infinity::Types::TypeID assetType
The type identifier for the asset.
Definition AssetLoadInfo.hpp:58
Runtime type identifier for the Infinity type system.
Definition TypeID.hpp:71