Remove virtual modifiers from ESM4 record functions

There is no need to have virtual functions.
pull/3226/head
elsid 3 years ago
parent 2c9b6fffe5
commit 4b28d51d5e
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::ActorCharacter::~ActorCharacter()
{
}
void ESM4::ActorCharacter::load(ESM4::Reader& reader) void ESM4::ActorCharacter::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -57,10 +57,8 @@ namespace ESM4
EnableParent mEsp; EnableParent mEsp;
virtual ~ActorCharacter(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::ActorCreature::~ActorCreature()
{
}
void ESM4::ActorCreature::load(ESM4::Reader& reader) void ESM4::ActorCreature::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -54,10 +54,8 @@ namespace ESM4
EnableParent mEsp; EnableParent mEsp;
virtual ~ActorCreature(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Activator::~Activator()
{
}
void ESM4::Activator::load(ESM4::Reader& reader) void ESM4::Activator::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -57,10 +57,8 @@ namespace ESM4
std::string mActivationPrompt; std::string mActivationPrompt;
virtual ~Activator(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -33,10 +33,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Potion::~Potion()
{
}
void ESM4::Potion::load(ESM4::Reader& reader) void ESM4::Potion::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -75,10 +75,8 @@ namespace ESM4
Data mData; Data mData;
EnchantedItem mItem; EnchantedItem mItem;
virtual ~Potion(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -38,10 +38,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::MediaLocationController::~MediaLocationController()
{
}
void ESM4::MediaLocationController::load(ESM4::Reader& reader) void ESM4::MediaLocationController::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -75,10 +75,8 @@ namespace ESM4
std::uint32_t mDayStart; std::uint32_t mDayStart;
std::uint32_t mNightStart; std::uint32_t mNightStart;
virtual ~MediaLocationController(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Ammunition::~Ammunition()
{
}
void ESM4::Ammunition::load(ESM4::Reader& reader) void ESM4::Ammunition::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -71,10 +71,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Ammunition(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::AnimObject::~AnimObject()
{
}
void ESM4::AnimObject::load(ESM4::Reader& reader) void ESM4::AnimObject::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -50,10 +50,8 @@ namespace ESM4
FormId mIdleAnim; // only in TES4 FormId mIdleAnim; // only in TES4
std::string mUnloadEvent; // only in TES5 std::string mUnloadEvent; // only in TES5
virtual ~AnimObject(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Apparatus::~Apparatus()
{
}
void ESM4::Apparatus::load(ESM4::Reader& reader) void ESM4::Apparatus::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -62,10 +62,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Apparatus(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::ArmorAddon::~ArmorAddon()
{
}
void ESM4::ArmorAddon::load(ESM4::Reader& reader) void ESM4::ArmorAddon::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -57,10 +57,8 @@ namespace ESM4
BodyTemplate mBodyTemplate; // TES5 BodyTemplate mBodyTemplate; // TES5
virtual ~ArmorAddon(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Armor::~Armor()
{
}
void ESM4::Armor::load(ESM4::Reader& reader) void ESM4::Armor::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -183,10 +183,8 @@ namespace ESM4
std::vector<FormId> mAddOns; // TES5 ARMA std::vector<FormId> mAddOns; // TES5 ARMA
Data mData; Data mData;
virtual ~Armor(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::AcousticSpace::~AcousticSpace()
{
}
void ESM4::AcousticSpace::load(ESM4::Reader& reader) void ESM4::AcousticSpace::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -53,10 +53,8 @@ namespace ESM4
std::uint32_t mIsInterior; // if true only use mAmbientLoopSounds[0] std::uint32_t mIsInterior; // if true only use mAmbientLoopSounds[0]
virtual ~AcousticSpace(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Book::~Book()
{
}
void ESM4::Book::load(ESM4::Reader& reader) void ESM4::Book::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -101,10 +101,8 @@ namespace ESM4
FormId mPickUpSound; FormId mPickUpSound;
FormId mDropSound; FormId mDropSound;
virtual ~Book(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -43,10 +43,6 @@ void ESM4::BodyPartData::BodyPart::clear()
mGoreEffectsTarget.clear(); mGoreEffectsTarget.clear();
} }
ESM4::BodyPartData::~BodyPartData()
{
}
void ESM4::BodyPartData::load(ESM4::Reader& reader) void ESM4::BodyPartData::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -115,10 +115,8 @@ namespace ESM4
std::vector<BodyPart> mBodyParts; std::vector<BodyPart> mBodyParts;
virtual ~BodyPartData(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -39,10 +39,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Cell::~Cell()
{
}
// TODO: Try loading only EDID and XCLC (along with mFormId, mFlags and mParent) // TODO: Try loading only EDID and XCLC (along with mFormId, mFlags and mParent)
// //
// But, for external cells we may be scanning the whole record since we don't know if there is // But, for external cells we may be scanning the whole record since we don't know if there is

@ -91,10 +91,8 @@ namespace ESM4
CellGroup *mCellGroup; CellGroup *mCellGroup;
virtual ~Cell(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
void blank(); void blank();
}; };

@ -36,10 +36,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Class::~Class()
{
}
void ESM4::Class::load(ESM4::Reader& reader) void ESM4::Class::load(ESM4::Reader& reader)
{ {
//mFormId = reader.adjustFormId(reader.hdr().record.id); // FIXME: use master adjusted? //mFormId = reader.adjustFormId(reader.hdr().record.id); // FIXME: use master adjusted?

@ -53,8 +53,6 @@ namespace ESM4
std::string mIcon; std::string mIcon;
Data mData; Data mData;
~Class();
void load(ESM4::Reader& reader); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& reader) const; //void save(ESM4::Writer& reader) const;

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Colour::~Colour()
{
}
void ESM4::Colour::load(ESM4::Reader& reader) void ESM4::Colour::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -57,10 +57,8 @@ namespace ESM4
ColourRGB mColour; ColourRGB mColour;
std::uint32_t mPlayable; std::uint32_t mPlayable;
virtual ~Colour(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Clothing::~Clothing()
{
}
void ESM4::Clothing::load(ESM4::Reader& reader) void ESM4::Clothing::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -70,10 +70,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Clothing(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Container::~Container()
{
}
void ESM4::Container::load(ESM4::Reader& reader) void ESM4::Container::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -58,10 +58,8 @@ namespace ESM4
std::vector<InventoryItem> mInventory; std::vector<InventoryItem> mInventory;
virtual ~Container(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -40,10 +40,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Creature::~Creature()
{
}
void ESM4::Creature::load(ESM4::Reader& reader) void ESM4::Creature::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -138,10 +138,8 @@ namespace ESM4
FormId mBaseTemplate; // FO3/FONV FormId mBaseTemplate; // FO3/FONV
std::vector<FormId> mBodyParts; // FO3/FONV std::vector<FormId> mBodyParts; // FO3/FONV
virtual ~Creature(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -33,10 +33,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Dialogue::~Dialogue()
{
}
void ESM4::Dialogue::load(ESM4::Reader& reader) void ESM4::Dialogue::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -57,10 +57,8 @@ namespace ESM4
float mPriority; float mPriority;
virtual ~Dialogue(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -37,10 +37,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::DefaultObj::~DefaultObj()
{
}
void ESM4::DefaultObj::load(ESM4::Reader& reader) void ESM4::DefaultObj::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -87,10 +87,8 @@ namespace ESM4
Defaults mData; Defaults mData;
virtual ~DefaultObj(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Door::~Door()
{
}
void ESM4::Door::load(ESM4::Reader& reader) void ESM4::Door::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -63,10 +63,8 @@ namespace ESM4
FormId mLoopSound; FormId mLoopSound;
FormId mRandomTeleport; FormId mRandomTeleport;
virtual ~Door(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Eyes::~Eyes()
{
}
void ESM4::Eyes::load(ESM4::Reader& reader) void ESM4::Eyes::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -55,10 +55,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Eyes(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Flora::~Flora()
{
}
void ESM4::Flora::load(ESM4::Reader& reader) void ESM4::Flora::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -65,10 +65,8 @@ namespace ESM4
FormId mSound; FormId mSound;
Production mPercentHarvest; Production mPercentHarvest;
virtual ~Flora(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::FormIdList::~FormIdList()
{
}
void ESM4::FormIdList::load(ESM4::Reader& reader) void ESM4::FormIdList::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -47,10 +47,8 @@ namespace ESM4
std::vector<FormId> mObjects; std::vector<FormId> mObjects;
virtual ~FormIdList(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Furniture::~Furniture()
{
}
void ESM4::Furniture::load(ESM4::Reader& reader) void ESM4::Furniture::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -51,10 +51,8 @@ namespace ESM4
FormId mScriptId; FormId mScriptId;
std::uint32_t mActiveMarkerFlags; std::uint32_t mActiveMarkerFlags;
virtual ~Furniture(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::GlobalVariable::~GlobalVariable()
{
}
void ESM4::GlobalVariable::load(ESM4::Reader& reader) void ESM4::GlobalVariable::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -47,10 +47,8 @@ namespace ESM4
std::uint8_t mType; std::uint8_t mType;
float mValue; float mValue;
virtual ~GlobalVariable(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Grass::~Grass()
{
}
void ESM4::Grass::load(ESM4::Reader& reader) void ESM4::Grass::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -85,10 +85,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Grass(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Hair::~Hair()
{
}
void ESM4::Hair::load(ESM4::Reader& reader) void ESM4::Hair::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -58,10 +58,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Hair(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::HeadPart::~HeadPart()
{
}
void ESM4::HeadPart::load(ESM4::Reader& reader) void ESM4::HeadPart::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -53,10 +53,8 @@ namespace ESM4
std::array<std::string, 3> mTriFile; std::array<std::string, 3> mTriFile;
FormId mBaseTexture; FormId mBaseTexture;
virtual ~HeadPart(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::IdleAnimation::~IdleAnimation()
{
}
void ESM4::IdleAnimation::load(ESM4::Reader& reader) void ESM4::IdleAnimation::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -49,10 +49,8 @@ namespace ESM4
FormId mParent; // IDLE or AACT FormId mParent; // IDLE or AACT
FormId mPrevious; FormId mPrevious;
virtual ~IdleAnimation(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::IdleMarker::~IdleMarker()
{
}
void ESM4::IdleMarker::load(ESM4::Reader& reader) void ESM4::IdleMarker::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -50,10 +50,8 @@ namespace ESM4
float mIdleTimer; float mIdleTimer;
std::vector<FormId> mIdleAnim; std::vector<FormId> mIdleAnim;
virtual ~IdleMarker(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -34,10 +34,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::ItemMod::~ItemMod()
{
}
void ESM4::ItemMod::load(ESM4::Reader& reader) void ESM4::ItemMod::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -46,10 +46,8 @@ namespace ESM4
std::string mEditorId; std::string mEditorId;
virtual ~ItemMod(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -33,10 +33,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::DialogInfo::~DialogInfo()
{
}
void ESM4::DialogInfo::load(ESM4::Reader& reader) void ESM4::DialogInfo::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -77,10 +77,8 @@ namespace ESM4
ScriptDefinition mScript; // FIXME: ignoring the second one after the NEXT sub-record ScriptDefinition mScript; // FIXME: ignoring the second one after the NEXT sub-record
virtual ~DialogInfo(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Ingredient::~Ingredient()
{
}
void ESM4::Ingredient::load(ESM4::Reader& reader) void ESM4::Ingredient::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -70,10 +70,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Ingredient(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Key::~Key()
{
}
void ESM4::Key::load(ESM4::Reader& reader) void ESM4::Key::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -64,10 +64,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Key(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -38,10 +38,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Land::~Land()
{
}
// overlap north // overlap north
// //
// 32 // 32

@ -123,8 +123,6 @@ namespace ESM4
Texture mTextures[4]; // 0 = bottom left, 1 = bottom right, 2 = top left, 3 = top right Texture mTextures[4]; // 0 = bottom left, 1 = bottom right, 2 = top left, 3 = top right
std::vector<FormId> mIds; // land texture (LTEX) formids std::vector<FormId> mIds; // land texture (LTEX) formids
virtual ~Land();
virtual void load(Reader& reader); virtual void load(Reader& reader);
//virtual void save(Writer& writer) const; //virtual void save(Writer& writer) const;

@ -35,10 +35,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::LightingTemplate::~LightingTemplate()
{
}
void ESM4::LightingTemplate::load(ESM4::Reader& reader) void ESM4::LightingTemplate::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -50,10 +50,8 @@ namespace ESM4
Lighting mLighting; Lighting mLighting;
virtual ~LightingTemplate(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Light::~Light()
{
}
void ESM4::Light::load(ESM4::Reader& reader) void ESM4::Light::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -84,10 +84,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~Light(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -37,10 +37,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::LandTexture::~LandTexture()
{
}
void ESM4::LandTexture::load(ESM4::Reader& reader) void ESM4::LandTexture::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -62,10 +62,8 @@ namespace ESM4
// ---------------------- // ----------------------
virtual ~LandTexture(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::LevelledCreature::~LevelledCreature()
{
}
void ESM4::LevelledCreature::load(ESM4::Reader& reader) void ESM4::LevelledCreature::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -58,10 +58,8 @@ namespace ESM4
bool calcEachItemInCount() const; bool calcEachItemInCount() const;
std::int8_t chanceNone() const; std::int8_t chanceNone() const;
virtual ~LevelledCreature(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::LevelledItem::~LevelledItem()
{
}
void ESM4::LevelledItem::load(ESM4::Reader& reader) void ESM4::LevelledItem::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -54,15 +54,13 @@ namespace ESM4
std::vector<LVLO> mLvlObject; std::vector<LVLO> mLvlObject;
virtual ~LevelledItem();
bool calcAllLvlLessThanPlayer() const; bool calcAllLvlLessThanPlayer() const;
bool calcEachItemInCount() const; bool calcEachItemInCount() const;
bool useAll() const; bool useAll() const;
std::int8_t chanceNone() const; std::int8_t chanceNone() const;
virtual void load(ESM4::Reader& reader); void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const; //void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::LevelledNpc::~LevelledNpc()
{
}
void ESM4::LevelledNpc::load(ESM4::Reader& reader) void ESM4::LevelledNpc::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -52,14 +52,12 @@ namespace ESM4
std::uint8_t mListCount; std::uint8_t mListCount;
std::vector<LVLO> mLvlObject; std::vector<LVLO> mLvlObject;
virtual ~LevelledNpc();
inline bool calcAllLvlLessThanPlayer() const { return (mLvlActorFlags & 0x01) != 0; } inline bool calcAllLvlLessThanPlayer() const { return (mLvlActorFlags & 0x01) != 0; }
inline bool calcEachItemInCount() const { return (mLvlActorFlags & 0x02) != 0; } inline bool calcEachItemInCount() const { return (mLvlActorFlags & 0x02) != 0; }
inline std::int8_t chanceNone() const { return mChanceNone; } inline std::int8_t chanceNone() const { return mChanceNone; }
virtual void load(ESM4::Reader& reader); void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const; //void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Material::~Material()
{
}
void ESM4::Material::load(ESM4::Reader& reader) void ESM4::Material::load(ESM4::Reader& reader)
{ {
//mFormId = reader.adjustFormId(reader.hdr().record.id); // FIXME: use master adjusted? //mFormId = reader.adjustFormId(reader.hdr().record.id); // FIXME: use master adjusted?

@ -45,10 +45,8 @@ namespace ESM4
std::string mEditorId; std::string mEditorId;
std::string mModel; std::string mModel;
virtual ~Material(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -31,10 +31,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::MiscItem::~MiscItem()
{
}
void ESM4::MiscItem::load(ESM4::Reader& reader) void ESM4::MiscItem::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -64,10 +64,8 @@ namespace ESM4
Data mData; Data mData;
virtual ~MiscItem(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::MediaSet::~MediaSet()
{
}
void ESM4::MediaSet::load(ESM4::Reader& reader) void ESM4::MediaSet::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -86,10 +86,8 @@ namespace ESM4
FormId mSoundIntro; // HNAM FormId mSoundIntro; // HNAM
FormId mSoundOutro; // INAM FormId mSoundOutro; // INAM
virtual ~MediaSet(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -32,10 +32,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::MovableStatic::~MovableStatic()
{
}
void ESM4::MovableStatic::load(ESM4::Reader& reader) void ESM4::MovableStatic::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -47,10 +47,8 @@ namespace ESM4
std::int8_t mData; std::int8_t mData;
FormId mLoopingSound; FormId mLoopingSound;
virtual ~MovableStatic(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -36,10 +36,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Music::~Music()
{
}
void ESM4::Music::load(ESM4::Reader& reader) void ESM4::Music::load(ESM4::Reader& reader)
{ {
mFormId = reader.hdr().record.id; mFormId = reader.hdr().record.id;

@ -47,10 +47,8 @@ namespace ESM4
std::string mEditorId; std::string mEditorId;
std::string mMusicFile; std::string mMusicFile;
virtual ~Music(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -38,10 +38,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::Navigation::~Navigation()
{
}
void ESM4::Navigation::IslandInfo::load(ESM4::Reader& reader) void ESM4::Navigation::IslandInfo::load(ESM4::Reader& reader)
{ {
reader.get(minX); reader.get(minX);

@ -104,10 +104,8 @@ namespace ESM4
std::map<FormId, std::uint32_t> mPathIndexMap; std::map<FormId, std::uint32_t> mPathIndexMap;
virtual ~Navigation(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
//void blank(); //void blank();
}; };

@ -35,10 +35,6 @@
#include "reader.hpp" #include "reader.hpp"
//#include "writer.hpp" //#include "writer.hpp"
ESM4::NavMesh::~NavMesh()
{
}
void ESM4::NavMesh::NVNMstruct::load(ESM4::Reader& reader) void ESM4::NavMesh::NVNMstruct::load(ESM4::Reader& reader)
{ {
//std::cout << "start: divisor " << std::dec << divisor << ", segments " << triSegments.size() << //std::endl; //std::cout << "start: divisor " << std::dec << divisor << ", segments " << triSegments.size() << //std::endl;

@ -98,10 +98,8 @@ namespace ESM4
FormId mFormId; // from the header FormId mFormId; // from the header
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
virtual ~NavMesh(); void load(ESM4::Reader& reader);
//void save(ESM4::Writer& writer) const;
virtual void load(ESM4::Reader& reader);
//virtual void save(ESM4::Writer& writer) const;
void blank(); void blank();
}; };

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save