1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +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 21:26:05 +03:00
void ESSImport::PROJ::load(ESM::ESMReader& esm)
{
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);
}
}
}