Floor is now just a fixture.

This commit is contained in:
Zed A. Shaw 2025-10-23 14:12:04 -04:00
parent 23f54bd4fe
commit e5fa76b03c
6 changed files with 20 additions and 25 deletions

View file

@ -83,8 +83,6 @@ namespace components {
struct AnimatedScene {
std::string background;
std::optional<std::string> floor;
std::string floor_pos;
json actors;
json fixtures;
};
@ -151,7 +149,7 @@ namespace components {
using ComponentMap = std::unordered_map<std::string, ReflFuncSignature>;
ENROLL_COMPONENT(Tile, display, foreground, background);
ENROLL_COMPONENT(AnimatedScene, background, floor, floor_pos, actors, fixtures);
ENROLL_COMPONENT(AnimatedScene, background, actors, fixtures);
ENROLL_COMPONENT(Sprite, name, scale);
ENROLL_COMPONENT(Curative, hp);
ENROLL_COMPONENT(LightSource, strength, radius);