mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Declare separate constructors with const reference and rvalue arguments for OscillatingRecastMeshObject
This commit is contained in:
parent
2d869ca9ff
commit
0bc0cfce5f
2 changed files with 10 additions and 2 deletions
|
@ -4,13 +4,20 @@
|
||||||
|
|
||||||
namespace DetourNavigator
|
namespace DetourNavigator
|
||||||
{
|
{
|
||||||
OscillatingRecastMeshObject::OscillatingRecastMeshObject(RecastMeshObject impl, std::size_t lastChangeRevision)
|
OscillatingRecastMeshObject::OscillatingRecastMeshObject(RecastMeshObject&& impl, std::size_t lastChangeRevision)
|
||||||
: mImpl(std::move(impl))
|
: mImpl(std::move(impl))
|
||||||
, mLastChangeRevision(lastChangeRevision)
|
, mLastChangeRevision(lastChangeRevision)
|
||||||
, mAabb(BulletHelpers::getAabb(mImpl.getShape(), mImpl.getTransform()))
|
, mAabb(BulletHelpers::getAabb(mImpl.getShape(), mImpl.getTransform()))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OscillatingRecastMeshObject::OscillatingRecastMeshObject(const RecastMeshObject& impl, std::size_t lastChangeRevision)
|
||||||
|
: mImpl(impl)
|
||||||
|
, mLastChangeRevision(lastChangeRevision)
|
||||||
|
, mAabb(BulletHelpers::getAabb(mImpl.getShape(), mImpl.getTransform()))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
bool OscillatingRecastMeshObject::update(const btTransform& transform, const AreaType areaType,
|
bool OscillatingRecastMeshObject::update(const btTransform& transform, const AreaType areaType,
|
||||||
std::size_t lastChangeRevision)
|
std::size_t lastChangeRevision)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,8 @@ namespace DetourNavigator
|
||||||
class OscillatingRecastMeshObject
|
class OscillatingRecastMeshObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit OscillatingRecastMeshObject(RecastMeshObject impl, std::size_t lastChangeRevision);
|
explicit OscillatingRecastMeshObject(RecastMeshObject&& impl, std::size_t lastChangeRevision);
|
||||||
|
explicit OscillatingRecastMeshObject(const RecastMeshObject& impl, std::size_t lastChangeRevision);
|
||||||
|
|
||||||
bool update(const btTransform& transform, const AreaType areaType, std::size_t lastChangeRevision);
|
bool update(const btTransform& transform, const AreaType areaType, std::size_t lastChangeRevision);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue