[saco] Implement CEntity Set/GetMoveSpeedVector

This commit is contained in:
RD42 2024-02-18 22:43:14 +08:00
parent ff4a8795f2
commit 17dcdb62f0
3 changed files with 24 additions and 0 deletions

View File

@ -45,6 +45,10 @@ typedef struct _ENTITY_TYPE
MATRIX4X4 *mat; // 20-24 MATRIX4X4 *mat; // 20-24
DWORD *pdwRenderWare; // 24-28 DWORD *pdwRenderWare; // 24-28
char _gap1C[40];
VECTOR vecMoveSpeed; // 68-80
} ENTITY_TYPE; } ENTITY_TYPE;
//----------------------------------------------------------- //-----------------------------------------------------------

View File

@ -77,3 +77,21 @@ void CEntity::sub_1009EC80()
//----------------------------------------------------------- //-----------------------------------------------------------
void CEntity::GetMoveSpeedVector(PVECTOR Vector)
{
Vector->X = m_pEntity->vecMoveSpeed.X;
Vector->Y = m_pEntity->vecMoveSpeed.Y;
Vector->Z = m_pEntity->vecMoveSpeed.Z;
}
//-----------------------------------------------------------
void CEntity::SetMoveSpeedVector(VECTOR Vector)
{
m_pEntity->vecMoveSpeed.X = Vector.X;
m_pEntity->vecMoveSpeed.Y = Vector.Y;
m_pEntity->vecMoveSpeed.Z = Vector.Z;
}
//-----------------------------------------------------------

View File

@ -14,6 +14,8 @@ public:
void GetMatrix(PMATRIX4X4 Matrix); void GetMatrix(PMATRIX4X4 Matrix);
void SetMatrix(MATRIX4X4 Matrix); void SetMatrix(MATRIX4X4 Matrix);
void sub_1009EC80(); void sub_1009EC80();
void GetMoveSpeedVector(PVECTOR Vector);
void SetMoveSpeedVector(VECTOR Vector);
char field_4[60]; char field_4[60];
ENTITY_TYPE *m_pEntity; ENTITY_TYPE *m_pEntity;