summaryrefslogtreecommitdiff
path: root/lib/src/turnsmm/turn-order.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-05-23 09:13:11 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-05-23 09:13:11 +0200
commitddce5043e70de5eab3d35b0986faf9a12933dedf (patch)
treeebe2a333ee8c6a2cb67d567a0f2a67dbe4c18d4f /lib/src/turnsmm/turn-order.cpp
parentef525d8cce452c31012dbc2009b36e21bc1e1811 (diff)
downloadturns-ddce5043e70de5eab3d35b0986faf9a12933dedf.tar.xz
turns-ddce5043e70de5eab3d35b0986faf9a12933dedf.zip
lib: add clear method to TurnOrder
Diffstat (limited to 'lib/src/turnsmm/turn-order.cpp')
-rw-r--r--lib/src/turnsmm/turn-order.cpp5
1 files changed, 5 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));