mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 04:38:21 +00:00
5225c86d65
* Misc component cleanup * Update InventoryComponent.h * Update MissionComponent.h * Update PropertyManagementComponent.h * Update PropertyVendorComponent.h * Update SkillComponent.h maximum pedantry B) * SoundTriggerComponent.h braces gone * Rename SoundTriggerComponent.h braces gone to SoundTriggerComponent.h I was tired
29 lines
866 B
C++
29 lines
866 B
C++
#pragma once
|
|
|
|
#include "Component.h"
|
|
#include "Entity.h"
|
|
#include "eReplicaComponentType.h"
|
|
#include <cstdint>
|
|
#include <array>
|
|
#include "dCommonVars.h"
|
|
|
|
/**
|
|
* Component that handles the LOT that is shown in the LUP exhibit in the LUP world. Works by setting a timer and
|
|
* switching the LOTs around that we'd like to display.
|
|
*/
|
|
class LUPExhibitComponent final : public Component
|
|
{
|
|
public:
|
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::LUP_EXHIBIT;
|
|
|
|
LUPExhibitComponent(Entity* parent) : Component(parent) {};
|
|
void Update(float deltaTime) override;
|
|
void Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate) override;
|
|
void NextLUPExhibit();
|
|
private:
|
|
float m_UpdateTimer = 0.0f;
|
|
std::array<LOT, 4> m_LUPExhibits = { 11121, 11295, 11423, 11979 };
|
|
uint8_t m_LUPExhibitIndex = 0;
|
|
bool m_DirtyLUPExhibit = true;
|
|
};
|