2021-11-21 14:28:40 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_RESOURCE_FOREACHBULLETOBJECT_H
|
|
|
|
#define OPENMW_COMPONENTS_RESOURCE_FOREACHBULLETOBJECT_H
|
|
|
|
|
|
|
|
#include <components/esm/defs.hpp>
|
|
|
|
#include <components/resource/bulletshape.hpp>
|
|
|
|
|
|
|
|
#include <osg/ref_ptr>
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
2022-06-01 20:53:18 +00:00
|
|
|
class ReadersCache;
|
2021-11-21 14:28:40 +00:00
|
|
|
struct Cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace VFS
|
|
|
|
{
|
|
|
|
class Manager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Resource
|
|
|
|
{
|
|
|
|
class BulletShapeManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace EsmLoader
|
|
|
|
{
|
|
|
|
struct EsmData;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Resource
|
|
|
|
{
|
|
|
|
struct BulletObject
|
|
|
|
{
|
|
|
|
osg::ref_ptr<const Resource::BulletShape> mShape;
|
|
|
|
ESM::Position mPosition;
|
|
|
|
float mScale;
|
|
|
|
};
|
|
|
|
|
2022-06-01 20:53:18 +00:00
|
|
|
void forEachBulletObject(ESM::ReadersCache& readers, const VFS::Manager& vfs,
|
2021-11-21 14:28:40 +00:00
|
|
|
Resource::BulletShapeManager& bulletShapeManager, const EsmLoader::EsmData& esmData,
|
|
|
|
std::function<void(const ESM::Cell&, const BulletObject& object)> callback);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|