blob: bef8212a17e20aaf3db5aada0eadc431e5adb53b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <erebos/storage.h>
namespace erebos
{
template<class T> struct Mergeable
{
};
template<> struct Mergeable<vector<Stored<Object>>>
{
using Component = Object;
static vector<Stored<Object>> components(const vector<Stored<Object>> & x) { return x; }
static vector<Stored<Object>> merge(const vector<Stored<Object>> & x) { return x; }
};
}
|