2017-01-15 03:07:01 +00:00
|
|
|
#ifndef __URDE_CSCRIPTSTREAMEDMUSIC_HPP__
|
|
|
|
#define __URDE_CSCRIPTSTREAMEDMUSIC_HPP__
|
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CScriptStreamedMusic : public CEntity
|
|
|
|
{
|
|
|
|
std::string x34_fileName;
|
2017-01-16 08:40:33 +00:00
|
|
|
bool x44_noStopOnDeactivate;
|
|
|
|
bool x45_fileIsDsp; // As opposed to .adp for DTK streaming
|
|
|
|
bool x46_loop;
|
|
|
|
bool x47_music;
|
|
|
|
float x48_fadeIn;
|
|
|
|
float x4c_fadeOut;
|
|
|
|
u32 x50_volume;
|
2017-11-13 06:19:18 +00:00
|
|
|
static bool IsDSPFile(std::string_view fileName);
|
2017-01-15 03:07:01 +00:00
|
|
|
void StopStream(CStateManager& mgr);
|
|
|
|
void StartStream(CStateManager& mgr);
|
2017-01-16 08:40:33 +00:00
|
|
|
void TweakOverride(CStateManager& mgr);
|
2017-01-15 03:07:01 +00:00
|
|
|
|
|
|
|
public:
|
2017-11-13 06:19:18 +00:00
|
|
|
CScriptStreamedMusic(TUniqueId id, const CEntityInfo& info, std::string_view name,
|
|
|
|
bool active, std::string_view fileName, bool noStopOnDeactivate,
|
2017-01-16 08:40:33 +00:00
|
|
|
float fadeIn, float fadeOut, u32 volume, bool loop, bool music);
|
2017-01-15 03:07:01 +00:00
|
|
|
|
|
|
|
void Stop(CStateManager& mgr);
|
|
|
|
void Play(CStateManager& mgr);
|
|
|
|
void Accept(IVisitor& visitor);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CSCRIPTSTREAMEDMUSIC_HPP__
|