From 238bdb7e3eba4f039234998380b2ad70e4162060 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 25 Sep 2024 17:31:18 +0200 Subject: core: add ::defeated property to participant --- core/include/turns/core/participant.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/include') diff --git a/core/include/turns/core/participant.hpp b/core/include/turns/core/participant.hpp index cd99fbb..a58e198 100644 --- a/core/include/turns/core/participant.hpp +++ b/core/include/turns/core/participant.hpp @@ -24,6 +24,11 @@ namespace turns::core auto operator<=>(participant const & other) const noexcept -> std::partial_ordering; + auto defeated(this auto && self) + { + return self.m_defeated.get_proxy(); + } + template auto disposition(this Self && self) { @@ -51,6 +56,7 @@ namespace turns::core auto serialize() -> nlohmann::json; private: + Glib::Property m_defeated{*this, "defeated", false}; Glib::Property m_disposition{*this, "disposition", core::disposition::neutral}; Glib::Property m_is_active{*this, "active", false}; Glib::Property m_name{*this, "name", ""}; -- cgit v1.2.3