mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 13:41:06 +03:00
Compare commits
1 Commits
bb8e191479
...
731b2a5ba5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
731b2a5ba5 |
@ -1 +1 @@
|
|||||||
Subproject commit 489f2149b74b2ca8302ec1cbcec9c6250057f7a1
|
Subproject commit 1e5366bbc6935e3363abf5921f0be12f902e790a
|
||||||
@ -111,10 +111,6 @@ C3Vector CGObject_C::GetPosition() const {
|
|||||||
return { 0.0f, 0.0f, 0.0f };
|
return { 0.0f, 0.0f, 0.0f };
|
||||||
}
|
}
|
||||||
|
|
||||||
WOWGUID CGObject_C::GetTransportGUID() const {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int32_t CGObject_C::IsInReenable() {
|
int32_t CGObject_C::IsInReenable() {
|
||||||
return this->m_inReenable;
|
return this->m_inReenable;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,8 +40,6 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
|
|||||||
// TODO
|
// TODO
|
||||||
virtual float GetFacing() const;
|
virtual float GetFacing() const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual WOWGUID GetTransportGUID() const;
|
|
||||||
// TODO
|
|
||||||
virtual int32_t GetModelFileName(const char*& name) const;
|
virtual int32_t GetModelFileName(const char*& name) const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual int32_t CanHighlight();
|
virtual int32_t CanHighlight();
|
||||||
|
|||||||
@ -183,14 +183,6 @@ C3Vector CGUnit_C::GetPosition() const {
|
|||||||
return this->CGUnit::GetPosition();
|
return this->CGUnit::GetPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
float CGUnit_C::GetRawSmoothFacing() const {
|
|
||||||
return this->m_smoothFacing;
|
|
||||||
}
|
|
||||||
|
|
||||||
WOWGUID CGUnit_C::GetTransportGUID() const {
|
|
||||||
return this->m_localMove.GetTransportGUID();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CGUnit_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
|
void CGUnit_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
|||||||
@ -32,8 +32,6 @@ class CGUnit_C : public CGObject_C, public CGUnit {
|
|||||||
// TODO
|
// TODO
|
||||||
virtual float GetFacing() const;
|
virtual float GetFacing() const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual WOWGUID GetTransportGUID() const;
|
|
||||||
// TODO
|
|
||||||
virtual int32_t GetModelFileName(const char*& name) const;
|
virtual int32_t GetModelFileName(const char*& name) const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual int32_t CanHighlight();
|
virtual int32_t CanHighlight();
|
||||||
@ -44,7 +42,6 @@ class CGUnit_C : public CGObject_C, public CGUnit {
|
|||||||
CGUnit_C(uint32_t time, CClientObjCreate& objCreate);
|
CGUnit_C(uint32_t time, CClientObjCreate& objCreate);
|
||||||
int32_t GetDisplayID() const;
|
int32_t GetDisplayID() const;
|
||||||
CreatureModelDataRec* GetModelData() const;
|
CreatureModelDataRec* GetModelData() const;
|
||||||
float GetRawSmoothFacing() const;
|
|
||||||
void PostInit(uint32_t time, const CClientObjCreate& init, bool a4);
|
void PostInit(uint32_t time, const CClientObjCreate& init, bool a4);
|
||||||
void PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover);
|
void PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover);
|
||||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||||
@ -68,8 +65,6 @@ class CGUnit_C : public CGObject_C, public CGUnit {
|
|||||||
// TODO
|
// TODO
|
||||||
int32_t m_localDisplayID = 0;
|
int32_t m_localDisplayID = 0;
|
||||||
// TODO
|
// TODO
|
||||||
float m_smoothFacing;
|
|
||||||
// TODO
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
#include "object/client/CVehicleCamera_C.hpp"
|
|
||||||
#include "object/client/CGObject_C.hpp"
|
|
||||||
|
|
||||||
int32_t CVehicleCamera_C::ConvertSmoothFacingFromRawToWorld(float& smoothFacing, CGObject_C* relativeTo) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
#ifndef OBJECT_CLIENT_C_VEHICLE_CAMERA_C_HPP
|
|
||||||
#define OBJECT_CLIENT_C_VEHICLE_CAMERA_C_HPP
|
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
class CGObject_C;
|
|
||||||
|
|
||||||
class CVehicleCamera_C {
|
|
||||||
public:
|
|
||||||
// Public static functions
|
|
||||||
static int32_t ConvertSmoothFacingFromRawToWorld(float& smoothFacing, CGObject_C* relativeTo);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@ -32,7 +32,3 @@ C3Vector CPassenger::GetPosition(const C3Vector& position) const {
|
|||||||
|
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
WOWGUID CPassenger::GetTransportGUID() const {
|
|
||||||
return this->m_transportGUID;
|
|
||||||
}
|
|
||||||
|
|||||||
@ -16,7 +16,6 @@ class CPassenger {
|
|||||||
float GetFacing(float facing) const;
|
float GetFacing(float facing) const;
|
||||||
C3Vector GetPosition() const;
|
C3Vector GetPosition() const;
|
||||||
C3Vector GetPosition(const C3Vector& position) const;
|
C3Vector GetPosition(const C3Vector& position) const;
|
||||||
WOWGUID GetTransportGUID() const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Protected member variables
|
// Protected member variables
|
||||||
|
|||||||
@ -1,12 +1,10 @@
|
|||||||
#include "ui/game/CGCamera.hpp"
|
#include "ui/game/CGCamera.hpp"
|
||||||
#include "console/CVar.hpp"
|
|
||||||
#include "object/Client.hpp"
|
|
||||||
#include "object/client/CVehicleCamera_C.hpp"
|
|
||||||
#include "ui/game/Types.hpp"
|
#include "ui/game/Types.hpp"
|
||||||
|
#include "console/CVar.hpp"
|
||||||
#include "world/World.hpp"
|
#include "world/World.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <storm/String.hpp>
|
#include <storm/String.hpp>
|
||||||
#include <tempest/Math.hpp>
|
#include <tempest/Math.hpp>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
static CVar* s_cameraView;
|
static CVar* s_cameraView;
|
||||||
|
|
||||||
@ -77,23 +75,8 @@ int32_t CGCamera::HasModel() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
C33Matrix CGCamera::ParentToWorld() const {
|
C33Matrix CGCamera::ParentToWorld() const {
|
||||||
auto relativeTo = ClntObjMgrObjectPtr(this->m_relativeTo, TYPE_OBJECT, __FILE__, __LINE__);
|
// TODO
|
||||||
|
|
||||||
if (!relativeTo) {
|
|
||||||
return {};
|
return {};
|
||||||
}
|
|
||||||
|
|
||||||
float facing;
|
|
||||||
|
|
||||||
if (relativeTo->IsA(TYPE_UNIT)) {
|
|
||||||
facing = static_cast<CGUnit_C*>(relativeTo)->GetRawSmoothFacing();
|
|
||||||
auto transport = ClntObjMgrObjectPtr(relativeTo->GetTransportGUID(), TYPE_OBJECT, __FILE__, __LINE__);
|
|
||||||
CVehicleCamera_C::ConvertSmoothFacingFromRawToWorld(facing, transport);
|
|
||||||
} else {
|
|
||||||
facing = relativeTo->GetFacing();
|
|
||||||
}
|
|
||||||
|
|
||||||
return C33Matrix::RotationAroundZ(facing);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
C3Vector CGCamera::Right() const {
|
C3Vector CGCamera::Right() const {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user