Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
ArchiveDirectory.hpp
1
#pragma once
2
3
#include <cstdint>
4
#include <map>
5
#include <string_view>
6
#include <vector>
7
8
#include <Common/ResourcePipeline/AssetType.hpp>
9
#include <Common/ResourcePipeline/Uuid.hpp>
10
11
namespace
Grindstone::Assets {
12
struct
ArchiveDirectory
{
13
struct
AssetInfo
{
14
std::string_view filename;
15
uint32_t crc;
16
uint16_t archiveIndex;
17
uint64_t offset;
18
uint64_t size;
19
};
20
21
struct
AssetTypeIndex
{
22
std::map<Uuid, AssetInfo> assets;
23
};
24
25
struct
ArchiveInfo
{
26
uint32_t crc;
27
};
28
29
ArchiveDirectory
() {
30
assetTypeIndices.resize(
static_cast<
size_t
>
(AssetType::Count));
31
}
32
33
std::vector<AssetTypeIndex> assetTypeIndices;
34
std::vector<ArchiveInfo> archives;
35
std::vector<char> strings;
36
};
37
}
Grindstone::Assets::ArchiveDirectory::ArchiveInfo
Definition
ArchiveDirectory.hpp:25
Grindstone::Assets::ArchiveDirectory::AssetInfo
Definition
ArchiveDirectory.hpp:13
Grindstone::Assets::ArchiveDirectory::AssetTypeIndex
Definition
ArchiveDirectory.hpp:21
Grindstone::Assets::ArchiveDirectory
Definition
ArchiveDirectory.hpp:12
sources
code
Common
Assets
ArchiveDirectory.hpp
Generated by
1.12.0