diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-06-05 15:00:34 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-06-05 15:00:34 +0200 |
| commit | 8b871a613647f64658bf6c098510cc3a35ba1b48 (patch) | |
| tree | ff87802a949ae9bbdb5f10ca7da1e4e317d62a3b /lib/src/turnsmm/turn-order.cpp | |
| parent | 938328d3c87d5b7f2d56921cc5893f1c2d98302d (diff) | |
| download | turns-8b871a613647f64658bf6c098510cc3a35ba1b48.tar.xz turns-8b871a613647f64658bf6c098510cc3a35ba1b48.zip | |
lib: add round-progress property to TurnOrder
Diffstat (limited to 'lib/src/turnsmm/turn-order.cpp')
| -rw-r--r-- | lib/src/turnsmm/turn-order.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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<SortMode>(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<float> + { + return {this, "round-progress"}; + } + auto TurnOrder::property_sort_mode() noexcept -> Glib::PropertyProxy<SortMode> { return {this, "sort-mode"}; |
