Skip to content

Commit

Permalink
Add Note::ClearTweens
Browse files Browse the repository at this point in the history
  • Loading branch information
imerr committed Apr 22, 2018
1 parent c1d65a3 commit c9e323c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions include/Engine/Node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,22 @@ namespace engine {
}
}

void ClearTweens(bool logic = true) {
if (logic) {
for (auto& tween : m_logicTweens) {
delete tween;
}
m_logicTweens.clear();
m_deletedLogicTweens.clear();
} else {
for (auto& tween : m_graphicTweens) {
delete tween;
}
m_graphicTweens.clear();
m_deletedGraphicTweens.clear();
}
}

bool IsIn(float x, float y);
protected:
friend Factory;
Expand Down

0 comments on commit c9e323c

Please sign in to comment.