Cogs.Core
MaterialDefinitionManager.h
1#pragma once
2
3#include <unordered_map>
4
5#include "MaterialDefinition.h"
6
7namespace Cogs
8{
9 namespace Core
10 {
12 {
13 public:
14 void add(MaterialDefinition && definition);
15 const MaterialDefinition * get(const StringView & name);
16
17 std::string getReport() const;
18
19 private:
20 std::vector<MaterialDefinition> definitions;
21 std::unordered_map<size_t, size_t> byName;
22 };
23 }
24}
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23