Cogs.Core
Asset.h
1#pragma once
2
3#include "ResourceBase.h"
4
5#include "AssetDefinition.h"
6
7namespace Cogs::Core
8{
9 struct Asset : public ResourceBase
10 {
11 Asset() = default;
12
14 Asset(const Asset& other) = delete;
15
17 Asset(Asset&& other) noexcept = default;
18
20 Asset& operator=(Asset&& other) noexcept = default;
21
22 AssetDefinition definition;
23
24 std::vector<ModelHandle> models;
25 std::vector<TextureHandle> textures;
26 std::vector<AssetHandle> assets;
27 };
28}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Asset & operator=(Asset &&other) noexcept=default
Move assign a Asset from other.
Asset(Asset &&other) noexcept=default
Move construct an Asset from other.
Asset(const Asset &other)=delete
Disabled copy construction.
Base class for engine resources.
Definition: ResourceBase.h:107