The layout is now also coming from the bosses.json file so it's totally configured there.
This commit is contained in:
parent
e5fa76b03c
commit
2d836a9e2a
6 changed files with 27 additions and 17 deletions
|
|
@ -83,6 +83,7 @@ namespace components {
|
|||
|
||||
struct AnimatedScene {
|
||||
std::string background;
|
||||
std::vector<std::string> layout;
|
||||
json actors;
|
||||
json fixtures;
|
||||
};
|
||||
|
|
@ -149,7 +150,7 @@ namespace components {
|
|||
using ComponentMap = std::unordered_map<std::string, ReflFuncSignature>;
|
||||
|
||||
ENROLL_COMPONENT(Tile, display, foreground, background);
|
||||
ENROLL_COMPONENT(AnimatedScene, background, actors, fixtures);
|
||||
ENROLL_COMPONENT(AnimatedScene, background, layout, actors, fixtures);
|
||||
ENROLL_COMPONENT(Sprite, name, scale);
|
||||
ENROLL_COMPONENT(Curative, hp);
|
||||
ENROLL_COMPONENT(LightSource, strength, radius);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue