26 lines
400 B
C++
26 lines
400 B
C++
#pragma once
|
|
#include "ecs.h"
|
|
|
|
struct Position : ecs::Component {
|
|
Position(float _x, float _y) : x(_x), y(_y) {}
|
|
Position() {}
|
|
|
|
float x = 0;
|
|
float y = 0;
|
|
};
|
|
|
|
struct Velocity : ecs::Component {
|
|
Velocity(float _x, float _y) : x(_x), y(_y) {}
|
|
Velocity() {}
|
|
|
|
float x = 0;
|
|
float y = 0;
|
|
};
|
|
|
|
struct Meta : ecs::Component {
|
|
Meta(std::string _name) : name(_name) {}
|
|
Meta() {}
|
|
|
|
std::string name;
|
|
};
|