| 71 | return tabs; |
| 72 | } |
| 73 | std::optional<Tab> Data::getTab(const std::uint32_t &id) const |
| 74 | { |
| 75 | if (tabs.size() > id) |
| 76 | { |
| 77 | return tabs.at(id); |
| 78 | } |
| 79 | |
| 80 | Fancy::fancy.logTime().warning() << "Tried to access non existent tab " << id << std::endl; |
| 81 | return std::nullopt; |
| 82 | } |
| 83 | std::optional<std::reference_wrapper<Sound>> Data::getSound(const std::uint32_t &id) |
| 84 | { |
| 85 | auto scopedSounds = Globals::gSounds.scoped(); |
no outgoing calls
no test coverage detected