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
11namespace Grindstone::Assets {
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
22 std::map<Uuid, AssetInfo> assets;
23 };
24
25 struct ArchiveInfo {
26 uint32_t crc;
27 };
28
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}
Definition ArchiveDirectory.hpp:25
Definition ArchiveDirectory.hpp:13
Definition ArchiveDirectory.hpp:12