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.
41 lines
782 B
C++
41 lines
782 B
C++
14 years ago
|
#include "loadcrea.hpp"
|
||
|
|
||
|
namespace ESM {
|
||
|
|
||
|
void Creature::load(ESMReader &esm, const std::string& id)
|
||
|
{
|
||
|
mId = id;
|
||
|
|
||
|
model = esm.getHNString("MODL");
|
||
|
original = esm.getHNOString("CNAM");
|
||
|
name = esm.getHNOString("FNAM");
|
||
|
script = esm.getHNOString("SCRI");
|
||
|
|
||
|
esm.getHNT(data, "NPDT", 96);
|
||
|
|
||
|
esm.getHNT(flags, "FLAG");
|
||
|
scale = 1.0;
|
||
|
esm.getHNOT(scale, "XSCL");
|
||
|
|
||
|
inventory.load(esm);
|
||
|
|
||
|
// More subrecords:
|
||
|
|
||
|
// AIDT - data (12 bytes, unknown)
|
||
|
// AI_W - wander (14 bytes, i don't understand it)
|
||
|
// short distance
|
||
|
// byte duration
|
||
|
// byte timeOfDay
|
||
|
// byte idle[10]
|
||
|
//
|
||
|
// Rest is optional:
|
||
|
// AI_T - travel?
|
||
|
// AI_F - follow?
|
||
|
// AI_E - escort?
|
||
|
// AI_A - activate?
|
||
|
|
||
|
esm.skipRecord();
|
||
|
}
|
||
|
|
||
|
}
|