mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 05:31:07 +03:00
Compare commits
5 Commits
e6f861d5d2
...
0ce6b5bf8b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ce6b5bf8b | ||
|
|
abf9eb3b05 | ||
|
|
00d340c242 | ||
|
|
d3d4fa884f | ||
|
|
44bee4cbd7 |
@ -1 +1 @@
|
|||||||
Subproject commit 489f2149b74b2ca8302ec1cbcec9c6250057f7a1
|
Subproject commit c6ee931690f71362ab76602fb6f34a6cf23d12b8
|
||||||
@ -1214,4 +1214,17 @@ struct CHARACTER_INFO {
|
|||||||
uint8_t firstLogin;
|
uint8_t firstLogin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct CHARACTER_CREATE_INFO {
|
||||||
|
char name[48];
|
||||||
|
uint8_t raceID;
|
||||||
|
uint8_t classID;
|
||||||
|
uint8_t sexID;
|
||||||
|
uint8_t skinID;
|
||||||
|
uint8_t faceID;
|
||||||
|
uint8_t hairStyleID;
|
||||||
|
uint8_t hairColorID;
|
||||||
|
uint8_t facialHairStyleID;
|
||||||
|
uint8_t outfitID;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -111,6 +111,10 @@ C3Vector CGObject_C::GetPosition() const {
|
|||||||
return { 0.0f, 0.0f, 0.0f };
|
return { 0.0f, 0.0f, 0.0f };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float CGObject_C::GetRawFacing() const {
|
||||||
|
return this->GetFacing();
|
||||||
|
}
|
||||||
|
|
||||||
WOWGUID CGObject_C::GetTransportGUID() const {
|
WOWGUID CGObject_C::GetTransportGUID() const {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,6 +39,7 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
|
|||||||
virtual C3Vector GetPosition() const;
|
virtual C3Vector GetPosition() const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual float GetFacing() const;
|
virtual float GetFacing() const;
|
||||||
|
virtual float GetRawFacing() const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual WOWGUID GetTransportGUID() const;
|
virtual WOWGUID GetTransportGUID() const;
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
@ -42,6 +42,10 @@ C3Vector CGUnit::GetPosition() const {
|
|||||||
return this->m_move->GetPosition();
|
return this->m_move->GetPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float CGUnit::GetRawFacing() const {
|
||||||
|
return this->m_move->GetRawFacing();
|
||||||
|
}
|
||||||
|
|
||||||
CGUnitData* CGUnit::Unit() const {
|
CGUnitData* CGUnit::Unit() const {
|
||||||
return this->m_unit;
|
return this->m_unit;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,6 +92,7 @@ class CGUnit {
|
|||||||
float GetFacing() const;
|
float GetFacing() const;
|
||||||
int32_t GetNativeDisplayID() const;
|
int32_t GetNativeDisplayID() const;
|
||||||
C3Vector GetPosition() const;
|
C3Vector GetPosition() const;
|
||||||
|
float GetRawFacing() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Protected member variables
|
// Protected member variables
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
#include "object/client/CGUnit_C.hpp"
|
#include "object/client/CGUnit_C.hpp"
|
||||||
#include "component/CCharacterComponent.hpp"
|
#include "component/CCharacterComponent.hpp"
|
||||||
|
#include "db/Db.hpp"
|
||||||
#include "model/Model2.hpp"
|
#include "model/Model2.hpp"
|
||||||
#include "object/client/ObjMgr.hpp"
|
#include "object/client/ObjMgr.hpp"
|
||||||
#include "db/Db.hpp"
|
|
||||||
#include "ui/Game.hpp"
|
#include "ui/Game.hpp"
|
||||||
#include <storm/Error.hpp>
|
#include <storm/Error.hpp>
|
||||||
|
#include <tempest/Math.hpp>
|
||||||
|
|
||||||
WOWGUID CGUnit_C::s_activeMover;
|
WOWGUID CGUnit_C::s_activeMover;
|
||||||
|
|
||||||
@ -183,6 +184,10 @@ C3Vector CGUnit_C::GetPosition() const {
|
|||||||
return this->CGUnit::GetPosition();
|
return this->CGUnit::GetPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float CGUnit_C::GetRawFacing() const {
|
||||||
|
return this->CGUnit::GetRawFacing();
|
||||||
|
}
|
||||||
|
|
||||||
float CGUnit_C::GetRawSmoothFacing() const {
|
float CGUnit_C::GetRawSmoothFacing() const {
|
||||||
return this->m_smoothFacing;
|
return this->m_smoothFacing;
|
||||||
}
|
}
|
||||||
@ -208,6 +213,10 @@ void CGUnit_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
this->m_smoothFacing = CMath::normalizeangle0to2pi(this->GetRawFacing());
|
||||||
|
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGUnit_C::PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover) {
|
void CGUnit_C::PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover) {
|
||||||
|
|||||||
@ -31,6 +31,7 @@ class CGUnit_C : public CGObject_C, public CGUnit {
|
|||||||
virtual C3Vector GetPosition() const;
|
virtual C3Vector GetPosition() const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual float GetFacing() const;
|
virtual float GetFacing() const;
|
||||||
|
virtual float GetRawFacing() const;
|
||||||
// TODO
|
// TODO
|
||||||
virtual WOWGUID GetTransportGUID() const;
|
virtual WOWGUID GetTransportGUID() const;
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
@ -33,6 +33,10 @@ C3Vector CPassenger::GetPosition(const C3Vector& position) const {
|
|||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float CPassenger::GetRawFacing() const {
|
||||||
|
return this->m_facing;
|
||||||
|
}
|
||||||
|
|
||||||
WOWGUID CPassenger::GetTransportGUID() const {
|
WOWGUID CPassenger::GetTransportGUID() const {
|
||||||
return this->m_transportGUID;
|
return this->m_transportGUID;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,6 +16,7 @@ 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;
|
||||||
|
float GetRawFacing() const;
|
||||||
WOWGUID GetTransportGUID() const;
|
WOWGUID GetTransportGUID() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user