From 8b871a613647f64658bf6c098510cc3a35ba1b48 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 5 Jun 2025 15:00:34 +0200 Subject: lib: add round-progress property to TurnOrder --- lib/src/turnsmm/turn-order.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/src/turnsmm/turn-order.cpp') diff --git a/lib/src/turnsmm/turn-order.cpp b/lib/src/turnsmm/turn-order.cpp index ae9bd43..58f4527 100644 --- a/lib/src/turnsmm/turn-order.cpp +++ b/lib/src/turnsmm/turn-order.cpp @@ -118,6 +118,11 @@ namespace Turns return turns_turn_order_get_running(unwrap(this)); } + auto TurnOrder::get_round_progress() const noexcept -> float + { + return turns_turn_order_get_round_progress(unwrap(this)); + } + auto TurnOrder::get_sort_mode() const noexcept -> SortMode { return static_cast(turns_turn_order_get_sort_mode(unwrap(this))); @@ -143,6 +148,11 @@ namespace Turns return {this, "running"}; } + auto TurnOrder::property_round_progress() const noexcept -> Glib::PropertyProxy_ReadOnly + { + return {this, "round-progress"}; + } + auto TurnOrder::property_sort_mode() noexcept -> Glib::PropertyProxy { return {this, "sort-mode"}; -- cgit v1.2.3