OpenMW
|
00001 #ifndef OPENMW_ESM_BOOK_H 00002 #define OPENMW_ESM_BOOK_H 00003 00004 #include <string> 00005 00006 namespace ESM 00007 { 00008 /* 00009 * Books, magic scrolls, notes and so on 00010 */ 00011 00012 class ESMReader; 00013 class ESMWriter; 00014 00015 struct Book 00016 { 00017 static unsigned int sRecordId; 00018 00019 struct BKDTstruct 00020 { 00021 float mWeight; 00022 int mValue, mIsScroll, mSkillID, mEnchant; 00023 }; 00024 00025 BKDTstruct mData; 00026 std::string mName, mModel, mIcon, mScript, mEnchant, mText; 00027 std::string mId; 00028 00029 void load(ESMReader &esm); 00030 void save(ESMWriter &esm) const; 00031 00032 void blank(); 00034 }; 00035 } 00036 #endif