liblcf
rpg_sound.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_SOUND_H
13 #define LCF_RPG_SOUND_H
14 
15 // Headers
16 #include <stdint.h>
17 #include <string>
18 
22 namespace RPG {
23  class Sound {
24  public:
25  std::string name = "(OFF)";
26  int32_t volume = 100;
27  int32_t tempo = 100;
28  int32_t balance = 50;
29  };
30 
31  inline bool operator==(const Sound& l, const Sound& r) {
32  return l.name == r.name
33  && l.volume == r.volume
34  && l.tempo == r.tempo
35  && l.balance == r.balance;
36  }
37 
38  inline bool operator!=(const Sound& l, const Sound& r) {
39  return !(l == r);
40  }
41 }
42 
43 #endif
int32_t tempo
Definition: rpg_sound.h:27
int32_t volume
Definition: rpg_sound.h:26
int32_t balance
Definition: rpg_sound.h:28
std::string name
Definition: rpg_sound.h:25
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
Definition: rpg_actor.h:26
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98