2017-09-12 19:11:30 +00:00
|
|
|
#include "importproj.h"
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2017-09-12 19:11:30 +00:00
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
void ESSImport::PROJ::load(ESM::ESMReader& esm)
|
|
|
|
{
|
|
|
|
while (esm.isNextSub("PNAM"))
|
2022-09-22 18:26:05 +00:00
|
|
|
{
|
2017-09-12 19:11:30 +00:00
|
|
|
PNAM pnam;
|
2023-12-17 13:03:45 +00:00
|
|
|
esm.getHT(pnam.mAttackStrength, pnam.mSpeed, pnam.mUnknown, pnam.mFlightTime, pnam.mSplmIndex,
|
|
|
|
pnam.mUnknown2, pnam.mVelocity.mValues, pnam.mPosition.mValues, pnam.mUnknown3, pnam.mActorId.mData,
|
|
|
|
pnam.mArrowId.mData, pnam.mBowId.mData);
|
2017-09-12 19:11:30 +00:00
|
|
|
mProjectiles.push_back(pnam);
|
2022-09-22 18:26:05 +00:00
|
|
|
}
|
2017-09-12 19:11:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|