The problem was keeping a reference in a class/object means that it will not get updated copies when levelmanager makes a new level. Honestly that whole constelation of bullshit needs to die. Closes #62.
This commit is contained in:
parent
ae1a48deed
commit
b839fb6463
2 changed files with 15 additions and 13 deletions
|
@ -39,7 +39,6 @@ namespace gui {
|
|||
guecs::UI $gui;
|
||||
GameLevel $level;
|
||||
textures::SpriteTexture $ritual_ui;
|
||||
::ritual::Blanket& $blanket;
|
||||
::ritual::Engine $ritual_engine;
|
||||
::ritual::CraftingState $craft_state;
|
||||
|
||||
|
@ -65,6 +64,10 @@ namespace gui {
|
|||
void complete_combine();
|
||||
void update_selection_state();
|
||||
void update_level(GameLevel &level);
|
||||
|
||||
::ritual::Blanket& blanket() {
|
||||
return $level.world->get_the<::ritual::Blanket>();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue