When using a PlaySoundOnEntity Event, you no longer have to provide the child of an entity as parameter.
This commit is contained in:
@@ -94,7 +94,7 @@ private:
|
||||
float m_BGMVolumeChannel = 1.0f;
|
||||
float m_SFXVolumeChannel = 1.0f;
|
||||
EntityWrapper m_LocalPlayer = EntityWrapper();
|
||||
|
||||
|
||||
// Events
|
||||
EventRelay<SoundManager, Events::PlaySoundOnEntity> m_EPlaySoundOnEntity;
|
||||
bool OnPlaySoundOnEntity(const Events::PlaySoundOnEntity &e);
|
||||
|
||||
@@ -36,11 +36,8 @@ private:
|
||||
World* m_World = nullptr;
|
||||
EventBroker* m_EventBroker = nullptr;
|
||||
std::string m_Announcer = "";
|
||||
|
||||
// Logic for playing a sound when a player jumps
|
||||
void playerJumps();
|
||||
// Helper function
|
||||
EntityID createChildEmitter(EntityWrapper parent);
|
||||
|
||||
std::default_random_engine generator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user