mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-05 18:24:12 +00:00
Implement Rocket Launch Lup Component
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "TeamManager.h"
|
||||
#include "ChatPackets.h"
|
||||
#include "GameConfig.h"
|
||||
#include "RocketLaunchLupComponent.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <future>
|
||||
@@ -2726,10 +2727,15 @@ void GameMessages::HandleEnterProperty(RakNet::BitStream* inStream, Entity* enti
|
||||
auto* player = Player::GetPlayer(sysAddr);
|
||||
|
||||
auto* entranceComponent = entity->GetComponent<PropertyEntranceComponent>();
|
||||
if (entranceComponent != nullptr) {
|
||||
entranceComponent->OnEnterProperty(player, index, returnToZone, sysAddr);
|
||||
return;
|
||||
}
|
||||
|
||||
if (entranceComponent == nullptr) return;
|
||||
|
||||
entranceComponent->OnEnterProperty(player, index, returnToZone, sysAddr);
|
||||
auto rocketLaunchLupComponent = entity->GetComponent<RocketLaunchLupComponent>();
|
||||
if (rocketLaunchLupComponent) {
|
||||
rocketLaunchLupComponent->OnSelectWorld(player, index, sysAddr);
|
||||
}
|
||||
}
|
||||
|
||||
void GameMessages::HandleSetConsumableItem(RakNet::BitStream* inStream, Entity* entity, const SystemAddress& sysAddr)
|
||||
|
Reference in New Issue
Block a user