Cogs.Core
ResourceArchive.h
1#pragma once
2
3#include "Foundation/StringView.h"
4#include "Foundation/Memory/MemoryBuffer.h"
5
6#include <memory>
7#include <vector>
8
9namespace Cogs::Core
10{
15 {
16 public:
20 ResourceArchive(class ResourceStore * context, std::string_view archiveName);
22
26
27 bool hasResource(std::string_view path) const;
28
29 Cogs::Memory::MemoryBuffer getResource(std::string_view path) const;
30
31 private:
32 std::unique_ptr<struct Archive> storage;
33 };
34}
Represents a resource archive used to load resources at runtime.
ResourceArchive & operator=(ResourceArchive &&other)
Move assign operator.
Provides handling of reading and caching of external resources.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....