liblcf
rpg_music.h
Go to the documentation of this file.
1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
5  * https://github.com/EasyRPG/liblcf - https://easyrpg.org
6  *
7  * liblcf is Free/Libre Open Source Software, released under the MIT License.
8  * For the full copyright and license information, please view the COPYING
9  * file that was distributed with this source code.
10  */
11 
12 #ifndef LCF_RPG_MUSIC_H
13 #define LCF_RPG_MUSIC_H
14 
15 // Headers
16 #include <stdint.h>
17 #include <string>
18 
22 namespace RPG {
23  class Music {
24  public:
25  std::string name = "(OFF)";
26  int32_t fadein = 0;
27  int32_t volume = 100;
28  int32_t tempo = 100;
29  int32_t balance = 50;
30  };
31 
32  inline bool operator==(const Music& l, const Music& r) {
33  return l.name == r.name
34  && l.fadein == r.fadein
35  && l.volume == r.volume
36  && l.tempo == r.tempo
37  && l.balance == r.balance;
38  }
39 
40  inline bool operator!=(const Music& l, const Music& r) {
41  return !(l == r);
42  }
43 }
44 
45 #endif
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
int32_t tempo
Definition: rpg_music.h:28
int32_t fadein
Definition: rpg_music.h:26
std::string name
Definition: rpg_music.h:25
Definition: rpg_actor.h:26
int32_t volume
Definition: rpg_music.h:27
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
int32_t balance
Definition: rpg_music.h:29