mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
move most of the files from esm to esm3, keep common code in esm; this is make space for a future with esm4
esm typo esm typo
This commit is contained in:
parent
c263bbf0f6
commit
d1fb854521
448 changed files with 686 additions and 683 deletions
43
components/esm3/loadmisc.hpp
Normal file
43
components/esm3/loadmisc.hpp
Normal file
|
@ -0,0 +1,43 @@
|
|||
#ifndef OPENMW_ESM_MISC_H
|
||||
#define OPENMW_ESM_MISC_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
|
||||
class ESMReader;
|
||||
class ESMWriter;
|
||||
|
||||
/*
|
||||
* Misc inventory items, basically things that have no use but can be
|
||||
* carried, bought and sold. It also includes keys.
|
||||
*/
|
||||
|
||||
struct Miscellaneous
|
||||
{
|
||||
static unsigned int sRecordId;
|
||||
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
||||
static std::string_view getRecordType() { return "Miscellaneous"; }
|
||||
|
||||
struct MCDTstruct
|
||||
{
|
||||
float mWeight;
|
||||
int mValue;
|
||||
int mIsKey; // There are many keys in Morrowind.esm that has this
|
||||
// set to 0. TODO: Check what this field corresponds to
|
||||
// in the editor.
|
||||
};
|
||||
MCDTstruct mData;
|
||||
|
||||
unsigned int mRecordFlags;
|
||||
std::string mId, mName, mModel, mIcon, mScript;
|
||||
|
||||
void load(ESMReader &esm, bool &isDeleted);
|
||||
void save(ESMWriter &esm, bool isDeleted = false) const;
|
||||
|
||||
void blank();
|
||||
///< Set record to default state (does not touch the ID).
|
||||
};
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue