@@ -11,7 +11,7 @@ namespace RTE {
11
11
// / <summary>
12
12
// / The singleton loader for all GUI sound effects.
13
13
// / </summary>
14
- class GUISound : public Singleton <GUISound>, public Entity {
14
+ class GUISound : public Singleton <GUISound> {
15
15
16
16
public:
17
17
@@ -28,27 +28,21 @@ namespace RTE {
28
28
virtual int Create ();
29
29
#pragma endregion
30
30
31
- #pragma region INI Handling
31
+ #pragma region Destruction
32
32
// / <summary>
33
- // / Saves the complete state of this GUISound to an output stream for later recreation with Create(Reader &reader);
33
+ // / Resets the entire GUISound, including its inherited members, to their default settings or values.
34
34
// / </summary>
35
- // / <param name="writer">A Writer that the GUISound will save itself with.</param>
36
- // / <returns>An error return value signaling success or any particular failure. Anything below 0 is an error signal.</returns>
37
- virtual int Save (Writer &writer) const { return 0 ; }
38
- #pragma endregion
35
+ void Reset () { Clear (); Reset (); }
39
36
40
- #pragma region Destruction
41
37
// / <summary>
42
- // / Destructor method used to clean up a GUISound object before deletion from system memory .
38
+ // / Destroys and resets (through Clear()) the GUISound object.
43
39
// / </summary>
44
- virtual ~GUISound () { Destroy (true ); }
45
- #pragma endregion
40
+ void Destroy () { Clear (); }
46
41
47
- #pragma region Virtual Override Methods
48
42
// / <summary>
49
- // / Resets the entire GUISound, including its inherited members, to their default settings or values .
43
+ // / Destructor method used to clean up a GUISound object before deletion from system memory .
50
44
// / </summary>
51
- virtual void Reset () { Clear (); Entity::Reset (); }
45
+ virtual ~GUISound () { Destroy (); }
52
46
#pragma endregion
53
47
54
48
#pragma region Getters
0 commit comments