format codebase

This commit is contained in:
aronwk-aaron
2022-07-28 08:39:57 -05:00
parent 4f7aa11067
commit 19e77a38d8
881 changed files with 34700 additions and 38689 deletions

View File

@@ -8,9 +8,9 @@
* Music that should be played by the client
*/
struct MusicCue {
std::string name;
uint32_t result;
float boredomTime;
std::string name;
uint32_t result;
float boredomTime;
};
/**
@@ -19,40 +19,40 @@ struct MusicCue {
*/
class SoundTriggerComponent : public Component {
public:
static const uint32_t ComponentType = COMPONENT_TYPE_SOUND_TRIGGER;
static const uint32_t ComponentType = COMPONENT_TYPE_SOUND_TRIGGER;
explicit SoundTriggerComponent(Entity* parent);
~SoundTriggerComponent() override;
explicit SoundTriggerComponent(Entity* parent);
~SoundTriggerComponent() override;
void Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags);
void Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags);
/**
* Activates a music cue, making it played by any client in range
* @param name the name of the music to play
*/
void ActivateMusicCue(const std::string& name);
/**
* Activates a music cue, making it played by any client in range
* @param name the name of the music to play
*/
void ActivateMusicCue(const std::string& name);
/**
* Deactivates a music cue (if active)
* @param name name of the music to deactivate
*/
void DeactivateMusicCue(const std::string& name);
/**
* Deactivates a music cue (if active)
* @param name name of the music to deactivate
*/
void DeactivateMusicCue(const std::string& name);
private:
/**
* Currently active cues
*/
std::vector<MusicCue> musicCues = {};
/**
* Currently active cues
*/
std::vector<MusicCue> musicCues = {};
/**
* Currently active mixer programs
*/
std::vector<std::string> mixerPrograms = {};
/**
* Currently active mixer programs
*/
std::vector<std::string> mixerPrograms = {};
/**
* GUID found in the LDF
*/
std::vector<GUID> guids = {};
bool dirty = false;
/**
* GUID found in the LDF
*/
std::vector<GUID> guids = {};
bool dirty = false;
};