mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
Address feedback
This commit is contained in:
parent
5af5b0f1c1
commit
a809f36548
@ -6215,8 +6215,5 @@ void GameMessages::HandleRequestActivityExit(RakNet::BitStream* inStream, Entity
|
|||||||
inStream->Read(player_id);
|
inStream->Read(player_id);
|
||||||
auto player = EntityManager::Instance()->GetEntity(player_id);
|
auto player = EntityManager::Instance()->GetEntity(player_id);
|
||||||
if (!entity || !player) return;
|
if (!entity || !player) return;
|
||||||
|
entity->RequestActivityExit(entity, player_id, canceled);
|
||||||
for (auto* shootingGallery : EntityManager::Instance()->GetEntitiesByComponent(eReplicaComponentType::SHOOTING_GALLERY)) {
|
|
||||||
shootingGallery->RequestActivityExit(entity, player_id, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ public:
|
|||||||
void OnMessageBoxResponse(Entity* self, Entity* sender, int32_t button, const std::u16string& identifier, const std::u16string& userData) override;
|
void OnMessageBoxResponse(Entity* self, Entity* sender, int32_t button, const std::u16string& identifier, const std::u16string& userData) override;
|
||||||
void OnActivityTimerDone(Entity* self, const std::string& name) override;
|
void OnActivityTimerDone(Entity* self, const std::string& name) override;
|
||||||
void OnActivityTimerUpdate(Entity* self, const std::string& name, float_t timeRemaining, float_t elapsedTime) override;
|
void OnActivityTimerUpdate(Entity* self, const std::string& name, float_t timeRemaining, float_t elapsedTime) override;
|
||||||
void OnRequestActivityExit(Entity* self, LWOOBJID player, bool canceled);
|
void OnRequestActivityExit(Entity* self, LWOOBJID player, bool canceled) override;
|
||||||
private:
|
private:
|
||||||
static std::vector<std::vector<SGEnemy>> GetWaves();
|
static std::vector<std::vector<SGEnemy>> GetWaves();
|
||||||
static SGConstants GetConstants();
|
static SGConstants GetConstants();
|
||||||
|
Loading…
Reference in New Issue
Block a user