blob: 36eb886899ca5fbfd8e60183043ed2c8e0cc69ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "GameObject.h"
#include "Transform.h"
using namespace crepe;
GameObject::GameObject(uint32_t id, std::string name, std::string tag,
int layer)
: id(id), name(name), tag(tag), active(true), layer(layer)
{
Position pos = {0,0};
this->add_component<Transform>(pos, 0, 0);
}
|