summaryrefslogtreecommitdiff
path: root/lib/src/turnsmm/turn-order.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/turnsmm/turn-order.cpp')
-rw-r--r--lib/src/turnsmm/turn-order.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/src/turnsmm/turn-order.cpp b/lib/src/turnsmm/turn-order.cpp
index 8dbcd9c..8e1914d 100644
--- a/lib/src/turnsmm/turn-order.cpp
+++ b/lib/src/turnsmm/turn-order.cpp
@@ -14,6 +14,7 @@
#include <glib-object.h>
#include <bit>
+#include <cstddef>
namespace Turns
{
@@ -66,11 +67,21 @@ namespace Turns
return gobj();
}
+ auto TurnOrder::get_participant_count() const noexcept -> std::size_t
+ {
+ return turns_turn_order_get_participant_count(const_cast<BaseObjectType *>(unwrap(this)));
+ }
+
auto TurnOrder::get_running() const noexcept -> bool
{
return turns_turn_order_get_running(const_cast<BaseObjectType *>(unwrap(this)));
}
+ auto TurnOrder::property_participant_count() const noexcept -> Glib::PropertyProxy_ReadOnly<std::size_t>
+ {
+ return {this, "participant-count"};
+ }
+
auto TurnOrder::property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>
{
return {this, "running"};