summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-08-17 14:05:14 -0400
committergumi <git@gumi.ca>2020-02-25 13:07:07 -0500
commit5baa2433dd5a2d7256fd5ba00d6d6b0471066fe4 (patch)
treedfc9f4dbc7c08ad9a4d29837c56fdccf62b4f8fb
parent541d4d8b90907d0657855fc5ea3b2626dd2ac16b (diff)
downloadplugin-5baa2433dd5a2d7256fd5ba00d6d6b0471066fe4.tar.gz
plugin-5baa2433dd5a2d7256fd5ba00d6d6b0471066fe4.tar.bz2
plugin-5baa2433dd5a2d7256fd5ba00d6d6b0471066fe4.tar.xz
plugin-5baa2433dd5a2d7256fd5ba00d6d6b0471066fe4.zip
add the BeingFlag enum from ManaPlus
-rw-r--r--src/Makefile.am1
-rw-r--r--src/emap/enum/beingflag.h21
2 files changed, 22 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cf864f1..d3ffbd3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -113,6 +113,7 @@ MAP_SRC = emap/atcommand.c \
emap/data/session.h \
emap/data/skilld.c \
emap/data/skilld.h \
+ emap/enum/beingflag.h \
emap/enum/esctype.h \
emap/enum/esitype.h \
emap/struct/bgdext.h \
diff --git a/src/emap/enum/beingflag.h b/src/emap/enum/beingflag.h
new file mode 100644
index 0000000..9c8d96c
--- /dev/null
+++ b/src/emap/enum/beingflag.h
@@ -0,0 +1,21 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 - 2019 Evol developers
+
+// This is a ManaPlus enum:
+// https://gitlab.com/manaplus/manaplus/blob/master/src/being/beingflag.h
+
+#ifndef EVOL_MAP_ENUM_BEINGFLAG
+#define EVOL_MAP_ENUM_BEINGFLAG
+
+typedef enum BeingFlag
+{
+ BEINGFLAG_SHOP = 1,
+ BEINGFLAG_AWAY = 2,
+ BEINGFLAG_INACTIVE = 4,
+ BEINGFLAG_GENDER_HIDDEN = 32,
+ BEINGFLAG_GM = 64,
+ BEINGFLAG_GENDER_MALE = 128,
+ BEINGFLAG_SPECIAL = 128 + 64
+} BeingFlag;
+
+#endif // EVOL_MAP_ENUM_BEINGFLAG