mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-24 17:23:50 +00:00
32 lines
515 B
C++
32 lines
515 B
C++
#ifndef _ESM_BOOK_H
|
|
#define _ESM_BOOK_H
|
|
|
|
#include "record.hpp"
|
|
#include "esm_reader.hpp"
|
|
#include "esm_writer.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
/*
|
|
* Books, magic scrolls, notes and so on
|
|
*/
|
|
|
|
struct Book : public Record
|
|
{
|
|
struct BKDTstruct
|
|
{
|
|
float weight;
|
|
int value, isScroll, skillID, enchant;
|
|
};
|
|
|
|
BKDTstruct data;
|
|
std::string name, model, icon, script, enchant, text;
|
|
|
|
void load(ESMReader &esm);
|
|
void save(ESMWriter &esm);
|
|
|
|
int getName() { return REC_BOOK; }
|
|
};
|
|
}
|
|
#endif
|