mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 14:07:20 +00:00
e524b86e12
* breakout the component types into a scoped enum tested that things are the same as they were before * fix missed rename * fix brick-by-brick name to be crafting because that's what it is
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "Entity.h"
|
|
#include "GameMessages.h"
|
|
#include "Component.h"
|
|
#include "eReplicaComponentType.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 eReplicaComponentType ComponentType = eReplicaComponentType::ROCKET_LAUNCH_LUP;
|
|
|
|
/**
|
|
* Constructor for this component, builds the m_LUPWorlds vector
|
|
* @param parent parent that contains this component
|
|
*/
|
|
RocketLaunchLupComponent(Entity* parent);
|
|
~RocketLaunchLupComponent() override;
|
|
|
|
/**
|
|
* Handles an OnUse event from some entity, preparing it for launch to some other world
|
|
* @param originator the entity that triggered the event
|
|
*/
|
|
void OnUse(Entity* originator) override;
|
|
|
|
/**
|
|
* Handles an OnUse event from some entity, preparing it for launch to some other world
|
|
* @param originator the entity that triggered the event
|
|
* @param index index of the world that was selected
|
|
*/
|
|
void OnSelectWorld(Entity* originator, uint32_t index);
|
|
private:
|
|
/**
|
|
* vector of the LUP World Zone IDs, built from CDServer's LUPZoneIDs table
|
|
*/
|
|
std::vector<LWOMAPID> m_LUPWorlds{};
|
|
};
|