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.
54 lines
1.0 KiB
C++
54 lines
1.0 KiB
C++
11 years ago
|
#ifndef OPENMW_ESM_NPCSTATS_H
|
||
|
#define OPENMW_ESM_NPCSTATS_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
#include <map>
|
||
|
|
||
|
#include "statstate.hpp"
|
||
|
|
||
|
namespace ESM
|
||
|
{
|
||
|
class ESMReader;
|
||
|
class ESMWriter;
|
||
|
|
||
|
// format 0, saved games only
|
||
|
|
||
|
struct NpcStats
|
||
|
{
|
||
|
struct Faction
|
||
|
{
|
||
|
bool mExpelled;
|
||
|
int mRank;
|
||
|
int mReputation;
|
||
|
|
||
|
Faction();
|
||
|
};
|
||
|
|
||
11 years ago
|
bool mIsWerewolf;
|
||
|
|
||
10 years ago
|
bool mWerewolfDeprecatedData;
|
||
|
|
||
10 years ago
|
std::map<std::string, Faction> mFactions; // lower case IDs
|
||
11 years ago
|
int mDisposition;
|
||
6 years ago
|
StatState<float> mSkills[27];
|
||
11 years ago
|
int mBounty;
|
||
|
int mReputation;
|
||
|
int mWerewolfKills;
|
||
|
int mLevelProgress;
|
||
|
int mSkillIncrease[8];
|
||
9 years ago
|
int mSpecIncreases[3];
|
||
10 years ago
|
std::vector<std::string> mUsedIds; // lower case IDs
|
||
11 years ago
|
float mTimeToStartDrowning;
|
||
11 years ago
|
int mCrimeId;
|
||
11 years ago
|
|
||
10 years ago
|
/// Initialize to default state
|
||
|
void blank();
|
||
|
|
||
11 years ago
|
void load (ESMReader &esm);
|
||
|
void save (ESMWriter &esm) const;
|
||
|
};
|
||
|
}
|
||
|
|
||
11 years ago
|
#endif
|