mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1011 B
C++
46 lines
1011 B
C++
11 years ago
|
#ifndef OPENMW_ESM_PLAYER_H
|
||
|
#define OPENMW_ESM_PLAYER_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
11 years ago
|
#include "npcstate.hpp"
|
||
11 years ago
|
#include "cellid.hpp"
|
||
3 years ago
|
#include "components/esm/defs.hpp"
|
||
11 years ago
|
|
||
10 years ago
|
#include "loadskil.hpp"
|
||
3 years ago
|
#include "components/esm/attr.hpp"
|
||
10 years ago
|
|
||
11 years ago
|
namespace ESM
|
||
|
{
|
||
|
class ESMReader;
|
||
|
class ESMWriter;
|
||
|
|
||
|
// format 0, saved games only
|
||
|
|
||
|
struct Player
|
||
|
{
|
||
11 years ago
|
NpcState mObject;
|
||
11 years ago
|
CellId mCellId;
|
||
|
float mLastKnownExteriorPosition[3];
|
||
|
unsigned char mHasMark;
|
||
3 years ago
|
bool mSetWerewolfAcrobatics;
|
||
11 years ago
|
ESM::Position mMarkedPosition;
|
||
|
CellId mMarkedCell;
|
||
11 years ago
|
std::string mBirthsign;
|
||
5 years ago
|
|
||
11 years ago
|
int mCurrentCrimeId;
|
||
11 years ago
|
int mPaidCrimeId;
|
||
11 years ago
|
|
||
3 years ago
|
float mSaveAttributes[ESM::Attribute::Length];
|
||
|
float mSaveSkills[ESM::Skill::Length];
|
||
10 years ago
|
|
||
7 years ago
|
typedef std::map<std::string, std::string> PreviousItems; // previous equipped items, needed for bound spells
|
||
|
PreviousItems mPreviousItems;
|
||
|
|
||
11 years ago
|
void load (ESMReader &esm);
|
||
|
void save (ESMWriter &esm) const;
|
||
|
};
|
||
|
}
|
||
|
|
||
11 years ago
|
#endif
|