metaforce/Runtime/World/CScriptStreamedMusic.hpp

38 lines
1.1 KiB
C++
Raw Permalink Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2017-01-15 03:07:01 +00:00
#include <string>
#include "Runtime/GCNTypes.hpp"
#include "Runtime/World/CEntity.hpp"
2017-01-15 03:07:01 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
class CStateManager;
2017-01-15 03:07:01 +00:00
2018-12-08 05:30:43 +00:00
class CScriptStreamedMusic : public CEntity {
std::string x34_fileName;
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;
static bool IsDSPFile(std::string_view fileName);
void StopStream(CStateManager& mgr);
void StartStream(CStateManager& mgr);
void TweakOverride(CStateManager& mgr);
2017-01-15 03:07:01 +00:00
public:
2021-05-26 14:00:57 +00:00
DEFINE_ENTITY
2018-12-08 05:30:43 +00:00
CScriptStreamedMusic(TUniqueId id, const CEntityInfo& info, std::string_view name, bool active,
std::string_view fileName, bool noStopOnDeactivate, float fadeIn, float fadeOut, u32 volume,
bool loop, bool music);
2017-01-15 03:07:01 +00:00
2018-12-08 05:30:43 +00:00
void Stop(CStateManager& mgr);
void Play(CStateManager& mgr);
void Accept(IVisitor& visitor) override;
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
2017-01-15 03:07:01 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce