mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Implement Rocket Launch Lup Component
This commit is contained in:
25
dGame/dComponents/RocketLaunchLupComponent.h
Normal file
25
dGame/dComponents/RocketLaunchLupComponent.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "Entity.h"
|
||||
#include "GameMessages.h"
|
||||
#include "Component.h"
|
||||
#include "Item.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 {};
|
||||
Item* m_rocket = nullptr;
|
||||
};
|
Reference in New Issue
Block a user