Fix compilation error; add final specifiers

This commit is contained in:
EmosewaMC 2023-07-04 22:38:35 -07:00
parent c22040c6eb
commit 8ede5b87ca
7 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ enum class eStateChangeType : uint32_t;
* Represents the stats of an entity, for example its health, imagination and armor. Also handles factions, which * Represents the stats of an entity, for example its health, imagination and armor. Also handles factions, which
* indicate which enemies this entity has. * indicate which enemies this entity has.
*/ */
class DestroyableComponent : public Component { class DestroyableComponent final : public Component {
public: public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::DESTROYABLE; inline static const eReplicaComponentType ComponentType = eReplicaComponentType::DESTROYABLE;

View File

@ -6,7 +6,7 @@
class Entity; class Entity;
class DonationVendorComponent : public VendorComponent { class DonationVendorComponent final : public VendorComponent {
public: public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::DONATION_VENDOR; inline static const eReplicaComponentType ComponentType = eReplicaComponentType::DONATION_VENDOR;
DonationVendorComponent(Entity* parent); DonationVendorComponent(Entity* parent);

View File

@ -6,7 +6,7 @@
class Entity; class Entity;
class GateRushComponent : public RacingControlComponent { class GateRushComponent final : public RacingControlComponent {
public: public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::GATE_RUSH_CONTROL; inline static const eReplicaComponentType ComponentType = eReplicaComponentType::GATE_RUSH_CONTROL;
GateRushComponent(Entity* parent, int32_t componentId); GateRushComponent(Entity* parent, int32_t componentId);

View File

@ -26,7 +26,7 @@ struct RemoteInputInfo {
/** /**
* Physics component for vehicles. * Physics component for vehicles.
*/ */
class HavokVehiclePhysicsComponent : public Component { class HavokVehiclePhysicsComponent final : public Component {
public: public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::HAVOK_VEHICLE_PHYSICS; inline static const eReplicaComponentType ComponentType = eReplicaComponentType::HAVOK_VEHICLE_PHYSICS;

View File

@ -35,7 +35,7 @@ enum class eItemType : int32_t;
* of different types, each type representing a different group of items, see `eInventoryType` for a list of * of different types, each type representing a different group of items, see `eInventoryType` for a list of
* inventories. * inventories.
*/ */
class InventoryComponent : public Component class InventoryComponent final : public Component
{ {
public: public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::INVENTORY; inline static const eReplicaComponentType ComponentType = eReplicaComponentType::INVENTORY;

View File

@ -12,7 +12,7 @@
class Entity; class Entity;
enum class eUgcModerationStatus : uint32_t; enum class eUgcModerationStatus : uint32_t;
class ItemComponent : public Component { class ItemComponent final : public Component {
public: public:
static const eReplicaComponentType ComponentType = eReplicaComponentType::ITEM; static const eReplicaComponentType ComponentType = eReplicaComponentType::ITEM;

View File

@ -379,7 +379,7 @@ protected:
std::vector<LWOOBJID> m_TargetsInPhantom; std::vector<LWOOBJID> m_TargetsInPhantom;
static const std::vector<ComponentWhitelist> m_ComponentWhitelists; static const std::vector<ComponentWhitelist> m_ComponentWhitelists;
static const std::array<eReplicaComponentType> m_ComponentOrder; static const std::array<eReplicaComponentType, 80> m_ComponentOrder;
}; };
#include "Entity.tcc" #include "Entity.tcc"