Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python_bindings/cte_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ void init_crashteameditor(py::module_& m)
.def_property("color",
[](const Checkpoint& cp) { return cp.GetColor(); },
[](Checkpoint& cp, const Color& color) { cp.SetColor(color); })
.def("update_pos", &Checkpoint::UpdatePos)
.def("update_dist_finish", &Checkpoint::UpdateDistFinish)
.def("update_up", &Checkpoint::UpdateUp)
.def("update_down", &Checkpoint::UpdateDown)
Expand Down
6 changes: 6 additions & 0 deletions src/checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ int Checkpoint::GetRight() const
return m_right;
}


void Checkpoint::UpdatePos(Vec3 pos)
{
m_pos = pos;
}

void Checkpoint::UpdateDistFinish(float dist)
{
m_distToFinish = dist;
Expand Down
1 change: 1 addition & 0 deletions src/checkpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Checkpoint
int GetRight() const;
const Color& GetColor() const;
void SetColor(const Color& color);
void UpdatePos(Vec3 pos);
void UpdateDistFinish(float dist);
void UpdateUp(int up);
void UpdateDown(int down);
Expand Down