diff options
Diffstat (limited to 'lib/src/turnsmm')
| -rw-r--r-- | lib/src/turnsmm/turn-order.cpp | 5 | ||||
| -rw-r--r-- | lib/src/turnsmm/turn-order.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/src/turnsmm/turn-order.cpp b/lib/src/turnsmm/turn-order.cpp index 7fefa01..35694b2 100644 --- a/lib/src/turnsmm/turn-order.cpp +++ b/lib/src/turnsmm/turn-order.cpp @@ -93,6 +93,11 @@ namespace Turns return turns_turn_order_add(unwrap(this), unwrap(participant)); } + auto TurnOrder::clear() noexcept -> void + { + return turns_turn_order_clear(Glib::unwrap(this)); + } + auto TurnOrder::get_participant_count() const noexcept -> std::size_t { return turns_turn_order_get_participant_count(unwrap(this)); diff --git a/lib/src/turnsmm/turn-order.hpp b/lib/src/turnsmm/turn-order.hpp index caaac24..64f72aa 100644 --- a/lib/src/turnsmm/turn-order.hpp +++ b/lib/src/turnsmm/turn-order.hpp @@ -50,6 +50,7 @@ namespace Turns [[nodiscard]] auto gobj_copy() noexcept -> BaseObjectType *; auto add(Glib::RefPtr<Participant> const & participant) noexcept -> void; + auto clear() noexcept -> void; [[nodiscard]] auto get_participant_count() const noexcept -> std::size_t; [[nodiscard]] auto get_running() const noexcept -> bool; |
