mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
59 lines
957 B
C++
59 lines
957 B
C++
#ifndef OPENMW_ESSIMPORT_PLAYER_H
|
|
#define OPENMW_ESSIMPORT_PLAYER_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
#include <components/esm/defs.hpp>
|
|
#include <components/esm/cellref.hpp>
|
|
#include <components/esm/esmcommon.hpp>
|
|
|
|
#include "importacdt.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
}
|
|
|
|
namespace ESSImport
|
|
{
|
|
|
|
/// Player-agnostic player data
|
|
struct REFR
|
|
{
|
|
ACDT mACDT;
|
|
|
|
std::string mRefID;
|
|
ESM::Position mPos;
|
|
ESM::RefNum mRefNum;
|
|
|
|
int mSkills[27][2];
|
|
float mAttributes[8][2];
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
};
|
|
|
|
/// Other player data
|
|
struct PCDT
|
|
{
|
|
int mBounty;
|
|
std::string mBirthsign;
|
|
|
|
struct FNAM
|
|
{
|
|
unsigned char mRank;
|
|
unsigned char mUnknown1[3];
|
|
int mReputation;
|
|
unsigned char mFlags; // 0x1: unknown, 0x2: expelled
|
|
unsigned char mUnknown2[3];
|
|
ESM::NAME32 mFactionName;
|
|
};
|
|
std::vector<FNAM> mFactions;
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|