A bit more cleanup, but still looking for more organization.

This commit is contained in:
Zed A. Shaw 2024-10-16 23:15:56 -04:00
parent e42647d727
commit 1bb8999610
6 changed files with 50 additions and 34 deletions

View file

@ -1,28 +1,30 @@
#pragma once
#include "dinkyecs.hpp"
struct Player {
DinkyECS::Entity entity;
};
namespace Components {
struct Player {
DinkyECS::Entity entity;
};
struct Position {
Point location;
};
struct Position {
Point location;
};
struct Motion {
int dx;
int dy;
};
struct Motion {
int dx;
int dy;
};
struct Combat {
int hp;
int damage;
};
struct Combat {
int hp;
int damage;
};
struct Treasure {
int amount;
};
struct Treasure {
int amount;
};
struct Tile {
std::string chr = "!";
};
struct Tile {
std::string chr = "!";
};
}