mirror of
https://github.com/SunsetMkt/Akebi-GC.git
synced 2025-01-10 03:19:02 +08:00
Made Entity direction functions const
This commit is contained in:
parent
3a3229c031
commit
98efc466ab
@ -229,7 +229,7 @@ namespace cheat::game
|
|||||||
SAFE_END();
|
SAFE_END();
|
||||||
}
|
}
|
||||||
|
|
||||||
app::Vector3 Entity::forward()
|
app::Vector3 Entity::forward() const
|
||||||
{
|
{
|
||||||
if (m_RawEntity == nullptr)
|
if (m_RawEntity == nullptr)
|
||||||
return {};
|
return {};
|
||||||
@ -237,12 +237,12 @@ namespace cheat::game
|
|||||||
return app::MoleMole_BaseEntity_GetForward(m_RawEntity, nullptr);
|
return app::MoleMole_BaseEntity_GetForward(m_RawEntity, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
app::Vector3 Entity::back()
|
app::Vector3 Entity::back() const
|
||||||
{
|
{
|
||||||
return -forward();
|
return -forward();
|
||||||
}
|
}
|
||||||
|
|
||||||
app::Vector3 Entity::right()
|
app::Vector3 Entity::right() const
|
||||||
{
|
{
|
||||||
if (m_RawEntity == nullptr)
|
if (m_RawEntity == nullptr)
|
||||||
return {};
|
return {};
|
||||||
@ -250,12 +250,12 @@ namespace cheat::game
|
|||||||
return app::MoleMole_BaseEntity_GetRight(m_RawEntity, nullptr);
|
return app::MoleMole_BaseEntity_GetRight(m_RawEntity, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
app::Vector3 Entity::left()
|
app::Vector3 Entity::left() const
|
||||||
{
|
{
|
||||||
return -right();
|
return -right();
|
||||||
}
|
}
|
||||||
|
|
||||||
app::Vector3 Entity::up()
|
app::Vector3 Entity::up() const
|
||||||
{
|
{
|
||||||
if (m_RawEntity == nullptr)
|
if (m_RawEntity == nullptr)
|
||||||
return {};
|
return {};
|
||||||
@ -263,7 +263,7 @@ namespace cheat::game
|
|||||||
return app::MoleMole_BaseEntity_GetUp(m_RawEntity, nullptr);
|
return app::MoleMole_BaseEntity_GetUp(m_RawEntity, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
app::Vector3 Entity::down()
|
app::Vector3 Entity::down() const
|
||||||
{
|
{
|
||||||
return -up();
|
return -up();
|
||||||
}
|
}
|
||||||
|
@ -39,12 +39,12 @@ namespace cheat::game
|
|||||||
app::Rigidbody* rigidbody();
|
app::Rigidbody* rigidbody();
|
||||||
app::Animator* animator();
|
app::Animator* animator();
|
||||||
|
|
||||||
app::Vector3 forward();
|
app::Vector3 forward() const;
|
||||||
app::Vector3 back();
|
app::Vector3 back() const;
|
||||||
app::Vector3 right();
|
app::Vector3 right() const;
|
||||||
app::Vector3 left();
|
app::Vector3 left() const;
|
||||||
app::Vector3 up();
|
app::Vector3 up() const;
|
||||||
app::Vector3 down();
|
app::Vector3 down() const;
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
T* plugin(void* pClass)
|
T* plugin(void* pClass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user