summaryrefslogtreecommitdiff
path: root/lib/src/turnsmm/participant.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-05-19 16:28:02 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-05-19 16:28:02 +0200
commitf61df0b33ea2a2de064f1fa2a9cde191b790a5ba (patch)
tree45c5cda251be02edefde3c975b555e7c504726a6 /lib/src/turnsmm/participant.hpp
parent0a5f3b25214c11556f62ce04601c06812a3464d8 (diff)
downloadturns-f61df0b33ea2a2de064f1fa2a9cde191b790a5ba.tar.xz
turns-f61df0b33ea2a2de064f1fa2a9cde191b790a5ba.zip
lib: rescope enums
Diffstat (limited to 'lib/src/turnsmm/participant.hpp')
-rw-r--r--lib/src/turnsmm/participant.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/src/turnsmm/participant.hpp b/lib/src/turnsmm/participant.hpp
index 53a7787..b23fd42 100644
--- a/lib/src/turnsmm/participant.hpp
+++ b/lib/src/turnsmm/participant.hpp
@@ -2,7 +2,7 @@
#define TURNSMM_PARTICIPANT_HPP
#include "turns-participant.h"
-#include "turnsmm/enums.hpp"
+#include "turnsmm/enum_helpers.hpp"
#include <glibmm/object.h>
#include <glibmm/propertyproxy.h>
@@ -10,6 +10,7 @@
#include <glibmm/ustring.h>
#include <glib-object.h>
+#include <glib.h>
namespace Turns
{
@@ -22,6 +23,14 @@ namespace Turns
using CppClassType = class Participant_Class;
using CppObjectType = Participant;
+ enum struct Disposition : guint
+ {
+ Neutral,
+ Friendly,
+ Hostile,
+ Secret,
+ };
+
auto static get_base_type() -> GType;
auto static get_type() -> GType;
@@ -68,6 +77,8 @@ namespace Turns
namespace Glib
{
+ TURNS_DECLARE_ENUM_VALUE_SPECIALIZATION(Participant::Disposition);
+
auto wrap(TurnsParticipant * object, bool copy = false) -> Glib::RefPtr<Turns::Participant>;
} // namespace Glib