Skip to content

Commit

Permalink
fix: extra entt listener for updates to PlayerComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed May 16, 2022
1 parent feac82e commit 1b032cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Code/client/Services/Generic/OverlayService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ OverlayService::OverlayService(World& aWorld, TransportService& transport, entt:
m_playerLeftConnection = aDispatcher.sink<NotifyPlayerLeft>().connect<&OverlayService::OnPlayerLeft>(this);
m_playerDialogueConnection = aDispatcher.sink<NotifyPlayerDialogue>().connect<&OverlayService::OnPlayerDialogue>(this);
m_playerAddedConnection = m_world.on_construct<PlayerComponent>().connect<&OverlayService::OnPlayerComponentAdded>(this);
m_playerAddedConnection = m_world.on_update<PlayerComponent>().connect<&OverlayService::OnPlayerComponentAdded>(this);
m_playerRemovedConnection = m_world.on_destroy<PlayerComponent>().connect<&OverlayService::OnPlayerComponentRemoved>(this);
m_playerLevelConnection = aDispatcher.sink<NotifyPlayerLevel>().connect<&OverlayService::OnPlayerLevel>(this);
m_cellChangedConnection = aDispatcher.sink<NotifyPlayerCellChanged>().connect<&OverlayService::OnPlayerCellChanged>(this);
Expand Down

0 comments on commit 1b032cf

Please sign in to comment.