| @@ 66-78 (lines=13) @@ | ||
| 63 | /** |
|
| 64 | * @param PartyEvent $event |
|
| 65 | */ |
|
| 66 | public function onPartyGone(PartyEvent $event) |
|
| 67 | { |
|
| 68 | $party = $event->getParty(); |
|
| 69 | ||
| 70 | if (!$this->souldBroadcastForGame($party)) { |
|
| 71 | return; |
|
| 72 | } |
|
| 73 | ||
| 74 | $this->broadcast([ |
|
| 75 | 'type' => 'gone', |
|
| 76 | 'party' => $party, |
|
| 77 | ]); |
|
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * @param SlotEvent $event |
|
| @@ 100-112 (lines=13) @@ | ||
| 97 | /** |
|
| 98 | * @param PartyEvent $event |
|
| 99 | */ |
|
| 100 | public function onPartyStarted(PartyEvent $event) |
|
| 101 | { |
|
| 102 | $party = $event->getParty(); |
|
| 103 | ||
| 104 | if (!$this->souldBroadcastForGame($party)) { |
|
| 105 | return; |
|
| 106 | } |
|
| 107 | ||
| 108 | $this->broadcast([ |
|
| 109 | 'type' => 'party_started', |
|
| 110 | 'event' => $event, |
|
| 111 | ]); |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * @param PartyEvent $event |
|
| @@ 117-129 (lines=13) @@ | ||
| 114 | /** |
|
| 115 | * @param PartyEvent $event |
|
| 116 | */ |
|
| 117 | public function onPartyEnded(PartyEvent $event) |
|
| 118 | { |
|
| 119 | $party = $event->getParty(); |
|
| 120 | ||
| 121 | if (!$this->souldBroadcastForGame($party)) { |
|
| 122 | return; |
|
| 123 | } |
|
| 124 | ||
| 125 | $this->broadcast([ |
|
| 126 | 'type' => 'party_ended', |
|
| 127 | 'event' => $event, |
|
| 128 | ]); |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * {@InheritDoc} |
|