Etterna
0.74.4
Loading...
Searching...
No Matches
src
Etterna
Models
StepsAndStyles
StyleUtil.h
1
#ifndef STYLEUTIL_H
2
#define STYLEUTIL_H
3
4
class
Style
;
5
class
Song
;
6
class
XNode
;
7
8
class
StyleID
9
{
10
std::string sGame;
11
std::string sStyle;
12
13
public
:
14
StyleID
()
15
: sGame(
""
)
16
, sStyle(
""
)
17
{
18
}
19
void
Unset() { FromStyle(
nullptr
); }
20
void
FromStyle(
const
Style
* p);
21
[[nodiscard]]
auto
ToStyle()
const
->
const
Style
*;
22
auto
operator<(
const
StyleID
& rhs)
const
-> bool;
23
24
[[nodiscard]]
auto
CreateNode()
const
->
XNode
*;
25
void
LoadFromNode(
const
XNode
* pNode);
26
[[nodiscard]]
auto
IsValid()
const
-> bool;
27
static
void
FlushCache(
Song
* pStaleSong);
28
};
29
30
#endif
Song
Holds all music metadata and steps for one song.
Definition
Song.h:65
StyleID
Definition
StyleUtil.h:9
Style
Definition
Style.h:22
XNode
Definition
XmlFile.h:95
Generated by
1.9.8