blob: 80864925c9c2f3fc333a9db10bc21881a324b11d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "Component.h"
using namespace crepe;
using namespace std;
Component::Component(game_object_id_t id) : game_object_id(id) {}
Component & Component::operator=(const Component &) {
return *this;
}
unique_ptr<Component> Component::save() const {
return unique_ptr<Component>(new Component(*this));
}
void Component::restore(const Component & snapshot) {
*this = snapshot;
}
|