Refactored the bossfight_ui so it will work with any description of a boss fight.
This commit is contained in:
parent
43835da88f
commit
a3f6ba3c03
12 changed files with 99 additions and 69 deletions
|
@ -46,6 +46,7 @@ namespace components {
|
|||
Config items;
|
||||
Config tiles;
|
||||
Config devices;
|
||||
Config bosses;
|
||||
};
|
||||
|
||||
struct EnemyConfig {
|
||||
|
@ -91,6 +92,8 @@ namespace components {
|
|||
|
||||
struct Sprite {
|
||||
string name;
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
||||
struct Sound {
|
||||
|
@ -118,7 +121,7 @@ namespace components {
|
|||
template <typename T> struct NameOf;
|
||||
|
||||
ENROLL_COMPONENT(Tile, display, foreground, background);
|
||||
ENROLL_COMPONENT(Sprite, name);
|
||||
ENROLL_COMPONENT(Sprite, name, width, height);
|
||||
ENROLL_COMPONENT(Curative, hp);
|
||||
ENROLL_COMPONENT(LightSource, strength, radius);
|
||||
ENROLL_COMPONENT(Weapon, damage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue