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
10
textures.cpp
10
textures.cpp
|
|
@ -146,8 +146,14 @@ namespace textures {
|
|||
return result;
|
||||
}
|
||||
|
||||
SpriteTexture get_sprite(const string& name) {
|
||||
return get(name, TMGR.sprite_textures);
|
||||
SpriteTexture get_sprite(const string& name, bool duped) {
|
||||
auto& st = get(name, TMGR.sprite_textures);
|
||||
|
||||
if(duped) {
|
||||
st.sprite = make_shared<sf::Sprite>(*st.sprite);
|
||||
}
|
||||
|
||||
return st;
|
||||
}
|
||||
|
||||
SpriteTexture get_icon(const string& name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue