Very simple items system to get into the inventory work.
This commit is contained in:
parent
1962b0c24e
commit
3d461bce6d
15 changed files with 94 additions and 32 deletions
|
@ -29,7 +29,8 @@ namespace components {
|
|||
|
||||
struct Inventory {
|
||||
int gold;
|
||||
DEFINE_SERIALIZABLE(Inventory, gold);
|
||||
LightSource light;
|
||||
DEFINE_SERIALIZABLE(Inventory, gold, light);
|
||||
};
|
||||
|
||||
struct Tile {
|
||||
|
@ -37,9 +38,11 @@ namespace components {
|
|||
DEFINE_SERIALIZABLE(Tile, chr);
|
||||
};
|
||||
|
||||
struct MapConfig {
|
||||
std::string PLAYER_TILE;
|
||||
std::string ENEMY_TILE;
|
||||
struct GameConfig {
|
||||
Config game;
|
||||
Config enemies;
|
||||
Config items;
|
||||
Config tiles;
|
||||
};
|
||||
|
||||
struct EnemyConfig {
|
||||
|
@ -50,4 +53,8 @@ namespace components {
|
|||
bool PATHS=false;
|
||||
bool LIGHT=false;
|
||||
};
|
||||
|
||||
struct Weapon {
|
||||
int damage = 0;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue