prediction/entity: Add GetPos() (sync the API with server/entity)

This commit is contained in:
Alexander Akulich 2022-07-14 23:35:34 +03:00
parent 5169369809
commit 9e4098f3a5

View file

@ -48,6 +48,7 @@ public:
class CCollision *Collision() { return GameWorld()->Collision(); } class CCollision *Collision() { return GameWorld()->Collision(); }
CEntity *TypeNext() { return m_pNextTypeEntity; } CEntity *TypeNext() { return m_pNextTypeEntity; }
CEntity *TypePrev() { return m_pPrevTypeEntity; } CEntity *TypePrev() { return m_pPrevTypeEntity; }
const vec2 &GetPos() const { return m_Pos; }
float GetProximityRadius() const { return m_ProximityRadius; } float GetProximityRadius() const { return m_ProximityRadius; }
void Destroy() { delete this; } void Destroy() { delete this; }