mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Mark all derived classes from ESM::ObjectsState and overriden functions as final
This commit is contained in:
parent
05884e690f
commit
5209f5ff6d
5 changed files with 25 additions and 25 deletions
|
@ -8,18 +8,18 @@ namespace ESM
|
|||
{
|
||||
// format 0, saved games only
|
||||
|
||||
struct ContainerState : public ObjectState
|
||||
struct ContainerState final : public ObjectState
|
||||
{
|
||||
InventoryState mInventory;
|
||||
|
||||
virtual void load (ESMReader &esm);
|
||||
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
||||
void load (ESMReader &esm) final;
|
||||
void save (ESMWriter &esm, bool inInventory = false) const final;
|
||||
|
||||
virtual ContainerState& asContainerState()
|
||||
ContainerState& asContainerState() final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
virtual const ContainerState& asContainerState() const
|
||||
const ContainerState& asContainerState() const final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -7,19 +7,19 @@ namespace ESM
|
|||
{
|
||||
// format 0, saved games only
|
||||
|
||||
struct CreatureLevListState : public ObjectState
|
||||
struct CreatureLevListState final : public ObjectState
|
||||
{
|
||||
int mSpawnActorId;
|
||||
bool mSpawn;
|
||||
|
||||
virtual void load (ESMReader &esm);
|
||||
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
||||
void load (ESMReader &esm) final;
|
||||
void save (ESMWriter &esm, bool inInventory = false) const final;
|
||||
|
||||
virtual CreatureLevListState& asCreatureLevListState()
|
||||
CreatureLevListState& asCreatureLevListState() final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
virtual const CreatureLevListState& asCreatureLevListState() const
|
||||
const CreatureLevListState& asCreatureLevListState() const final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace ESM
|
|||
{
|
||||
// format 0, saved games only
|
||||
|
||||
struct CreatureState : public ObjectState
|
||||
struct CreatureState final : public ObjectState
|
||||
{
|
||||
InventoryState mInventory;
|
||||
CreatureStats mCreatureStats;
|
||||
|
@ -17,14 +17,14 @@ namespace ESM
|
|||
/// Initialize to default state
|
||||
void blank();
|
||||
|
||||
virtual void load (ESMReader &esm);
|
||||
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
||||
void load (ESMReader &esm) final;
|
||||
void save (ESMWriter &esm, bool inInventory = false) const final;
|
||||
|
||||
virtual CreatureState& asCreatureState()
|
||||
CreatureState& asCreatureState() final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
virtual const CreatureState& asCreatureState() const
|
||||
const CreatureState& asCreatureState() const final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -7,18 +7,18 @@ namespace ESM
|
|||
{
|
||||
// format 0, saved games only
|
||||
|
||||
struct DoorState : public ObjectState
|
||||
struct DoorState final : public ObjectState
|
||||
{
|
||||
int mDoorState = 0;
|
||||
|
||||
virtual void load (ESMReader &esm);
|
||||
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
||||
void load (ESMReader &esm) final;
|
||||
void save (ESMWriter &esm, bool inInventory = false) const final;
|
||||
|
||||
virtual DoorState& asDoorState()
|
||||
DoorState& asDoorState() final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
virtual const DoorState& asDoorState() const
|
||||
const DoorState& asDoorState() const final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace ESM
|
|||
{
|
||||
// format 0, saved games only
|
||||
|
||||
struct NpcState : public ObjectState
|
||||
struct NpcState final : public ObjectState
|
||||
{
|
||||
InventoryState mInventory;
|
||||
NpcStats mNpcStats;
|
||||
|
@ -19,14 +19,14 @@ namespace ESM
|
|||
/// Initialize to default state
|
||||
void blank();
|
||||
|
||||
virtual void load (ESMReader &esm);
|
||||
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
||||
void load (ESMReader &esm) final;
|
||||
void save (ESMWriter &esm, bool inInventory = false) const final;
|
||||
|
||||
virtual NpcState& asNpcState()
|
||||
NpcState& asNpcState() final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
virtual const NpcState& asNpcState() const
|
||||
const NpcState& asNpcState() const final
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue