Etterna 0.74.4
Loading...
Searching...
No Matches
ActorSound.h
1#ifndef ACTOR_SOUND_H
2#define ACTOR_SOUND_H
3
4#include "Actor.h"
5#include "RageUtil/Sound/RageSound.h"
7class ActorSound : public Actor
8{
9 public:
11
12 = default;
13 ~ActorSound() override = default;
14 ActorSound* Copy() const override;
15
16 void Load(const std::string& sPath);
17 void Play();
18 void Pause(bool bPause);
19 void Stop();
20 void Update(float) override;
21 void LoadFromNode(const XNode* pNode) override;
22 void PushSound(lua_State* L) { m_Sound.PushSelf(L); }
23
24 bool m_is_action{ false };
25
26 //
27 // Lua
28 //
29 void PushSelf(lua_State* L) override;
30
31 private:
32 RageSound m_Sound;
33};
34
35#endif
RageSound Actor interface.
Definition ActorSound.h:8
Base class for all objects that appear on the screen.
Definition Actor.h:77
Definition RageSound.h:130
Definition XmlFile.h:95