This commit is contained in:
38
src/resource/xml/cursor.hpp
Normal file
38
src/resource/xml/cursor.hpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include "util.hpp"
|
||||
|
||||
namespace game::resource::xml
|
||||
{
|
||||
class Cursor
|
||||
{
|
||||
public:
|
||||
struct Animations
|
||||
{
|
||||
AnimationEntryCollection idle{};
|
||||
AnimationEntryCollection hover{};
|
||||
AnimationEntryCollection grab{};
|
||||
AnimationEntryCollection pan{};
|
||||
AnimationEntryCollection zoom{};
|
||||
AnimationEntryCollection return_{};
|
||||
};
|
||||
|
||||
struct Sounds
|
||||
{
|
||||
SoundEntryCollection grab{};
|
||||
SoundEntryCollection release{};
|
||||
SoundEntryCollection throw_{};
|
||||
};
|
||||
|
||||
Animations animations{};
|
||||
Sounds sounds{};
|
||||
Anm2 anm2{};
|
||||
|
||||
bool isValid{};
|
||||
|
||||
Cursor() = default;
|
||||
Cursor(const util::physfs::Path&);
|
||||
|
||||
bool is_valid() const;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user