This commit is contained in:
31
src/resource/xml/menu.hpp
Normal file
31
src/resource/xml/menu.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../util/physfs.hpp"
|
||||
#include "../font.hpp"
|
||||
#include "sound_entry.hpp"
|
||||
|
||||
namespace game::resource::xml
|
||||
{
|
||||
class Menu
|
||||
{
|
||||
public:
|
||||
struct Sounds
|
||||
{
|
||||
SoundEntryCollection open{};
|
||||
SoundEntryCollection close{};
|
||||
SoundEntryCollection hover{};
|
||||
SoundEntryCollection select{};
|
||||
};
|
||||
|
||||
Sounds sounds{};
|
||||
Font font{};
|
||||
float rounding{};
|
||||
|
||||
bool isValid{};
|
||||
|
||||
Menu() = default;
|
||||
Menu(const util::physfs::Path&);
|
||||
|
||||
bool is_valid() const;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user