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
* indicate which enemies this entity has.
*/
class DestroyableComponent : public Component {
class DestroyableComponent final : public Component {
public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::DESTROYABLE;

View File

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

View File

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

View File

@ -26,7 +26,7 @@ struct RemoteInputInfo {
/**
* Physics component for vehicles.
*/
class HavokVehiclePhysicsComponent : public Component {
class HavokVehiclePhysicsComponent final : public Component {
public:
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
* inventories.
*/
class InventoryComponent : public Component
class InventoryComponent final : public Component
{
public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::INVENTORY;

View File

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

View File

@ -379,7 +379,7 @@ protected:
std::vector<LWOOBJID> m_TargetsInPhantom;
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"