mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 01:08:01 +03:00
Convert static position to PHD_3DPOS, fix crossbow bolt shatter, read/write proper shatter type
This commit is contained in:
parent
2f3af7e3ea
commit
f8d9edeb81
22 changed files with 189 additions and 200 deletions
|
@ -63,24 +63,24 @@ void GameScriptMeshInfo::Register(sol::state* state)
|
|||
|
||||
GameScriptPosition GameScriptMeshInfo::GetPos() const
|
||||
{
|
||||
return GameScriptPosition{ m_mesh.x, m_mesh.y, m_mesh.z };
|
||||
return GameScriptPosition{ m_mesh.pos.xPos, m_mesh.pos.yPos, m_mesh.pos.zPos };
|
||||
}
|
||||
|
||||
void GameScriptMeshInfo::SetPos(GameScriptPosition const& pos)
|
||||
{
|
||||
m_mesh.x = pos.x;
|
||||
m_mesh.y = pos.y;
|
||||
m_mesh.z = pos.z;
|
||||
m_mesh.pos.xPos = pos.x;
|
||||
m_mesh.pos.yPos = pos.y;
|
||||
m_mesh.pos.zPos = pos.z;
|
||||
}
|
||||
|
||||
int GameScriptMeshInfo::GetRot() const
|
||||
{
|
||||
return m_mesh.yRot;
|
||||
return m_mesh.pos.yRot;
|
||||
}
|
||||
|
||||
void GameScriptMeshInfo::SetRot(int yRot)
|
||||
{
|
||||
m_mesh.yRot = yRot;
|
||||
m_mesh.pos.yRot = yRot;
|
||||
}
|
||||
|
||||
std::string GameScriptMeshInfo::GetName() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue