feat(object): set position and facing in CGUnit_C ctor
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Has been cancelled

This commit is contained in:
fallenoak committed 2026-02-25 22:11:31 -06:00
1 parent 8851d2e5e1
commit 5492b3f231
10 files changed
+140 -2

No files matched your search

+5 -1
View File
@@ -96,7 +96,11 @@ const char* CGUnit_C::GetDisplayRaceNameFromRecord(const ChrRacesRec* raceRec, U
return raceRec->m_name;
}
CGUnit_C::CGUnit_C(uint32_t time, CClientObjCreate& objCreate) : CGObject_C(time, objCreate) {
CGUnit_C::CGUnit_C(uint32_t time, CClientObjCreate& objCreate)
: CGObject_C(time, objCreate)
, m_movement(&this->m_localMovement)
, m_localMovement(objCreate.move.status.position28, objCreate.move.status.facing34, this->GetGUID(), this)
{
// TODO
this->RefreshDataPointers();
+4
View File
@@ -4,6 +4,7 @@
#include "object/client/CClientObjCreate.hpp"
#include "object/client/CGObject_C.hpp"
#include "object/client/CGUnit.hpp"
#include "object/client/CMovementData_C.hpp"
#include "object/Types.hpp"
#include "util/GUID.hpp"
@@ -48,6 +49,9 @@ class CGUnit_C : public CGObject_C, public CGUnit {
private:
// Private member variables
CMovementData_C* m_movement;
// TODO
CMovementData_C m_localMovement;
// TODO
CreatureDisplayInfoRec* m_displayInfo;
CreatureDisplayInfoExtraRec* m_displayInfoExtra;
+7
View File
@@ -0,0 +1,7 @@
#include "object/client/CMovementData_C.hpp"
CMovementData_C::CMovementData_C(const C3Vector& position, float facing, const WOWGUID& guid, CGUnit_C* unit)
: CMovementShared(0, position, facing, guid)
{
// TODO
}
+14
View File
@@ -0,0 +1,14 @@
#ifndef OBJECT_CLIENT_C_MOVEMENT_DATA_C_HPP
#define OBJECT_CLIENT_C_MOVEMENT_DATA_C_HPP
#include "object/movement/CMovementShared.hpp"
class CGUnit_C;
class CMovementData_C : public CMovementShared {
public:
// Public member functions
CMovementData_C(const C3Vector& position, float facing, const WOWGUID& guid, CGUnit_C* unit);
};
#endif
+15
View File
@@ -0,0 +1,15 @@
#ifndef OBJECT_CLIENT_C_MOVEMENT_C_HPP
#define OBJECT_CLIENT_C_MOVEMENT_C_HPP
#include "object/client/CMovementData_C.hpp"
#include "util/GUID.hpp"
#include <tempest/Vector.hpp>
class CMovement_C : public CMovementData_C {
public:
// Public member functions
CMovement_C(const C3Vector& position, float facing, const WOWGUID& guid, CGUnit_C* unit)
: CMovementData_C(position, facing, guid, unit) {};
};
#endif