1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 21:59:55 +00:00
openmw/apps/essimporter/importproj.cpp

21 lines
561 B
C++
Raw Normal View History

#include "importproj.h"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
2022-09-22 18:26:05 +00:00
void ESSImport::PROJ::load(ESM::ESMReader& esm)
{
2022-09-22 18:26:05 +00:00
while (esm.isNextSub("PNAM"))
{
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);
2022-09-22 18:26:05 +00:00
mProjectiles.push_back(pnam);
}
}
}