2017-09-12 21:11:30 +02:00
|
|
|
#include "importproj.h"
|
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2017-09-12 21:11:30 +02:00
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
2022-09-22 21:26:05 +03:00
|
|
|
void ESSImport::PROJ::load(ESM::ESMReader& esm)
|
2017-09-12 21:11:30 +02:00
|
|
|
{
|
2022-09-22 21:26:05 +03:00
|
|
|
while (esm.isNextSub("PNAM"))
|
|
|
|
{
|
|
|
|
PNAM pnam;
|
2023-12-17 14:03:45 +01: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);
|
2022-09-22 21:26:05 +03:00
|
|
|
mProjectiles.push_back(pnam);
|
|
|
|
}
|
2017-09-12 21:11:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|