mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
24 lines
625 B
C
24 lines
625 B
C
|
#pragma once
|
||
|
|
||
|
#include "Entity.h"
|
||
|
#include "GameMessages.h"
|
||
|
#include "Component.h"
|
||
|
|
||
|
/**
|
||
|
* Component that handles the LUP/WBL rocket launchpad that can be interacted with to travel to WBL worlds.
|
||
|
*
|
||
|
*/
|
||
|
class RocketLaunchLupComponent : public Component {
|
||
|
public:
|
||
|
static const uint32_t ComponentType = eReplicaComponentType::COMPONENT_TYPE_ROCKET_LAUNCH_LUP;
|
||
|
|
||
|
RocketLaunchLupComponent(Entity* parent);
|
||
|
~RocketLaunchLupComponent() override;
|
||
|
|
||
|
void OnUse(Entity* originator) override;
|
||
|
|
||
|
void OnSelectWorld(Entity* originator, uint32_t index, const SystemAddress& sysAddr);
|
||
|
private:
|
||
|
std::vector<LWOMAPID> m_LUPWorlds {};
|
||
|
};
|