summaryrefslogtreecommitdiff
path: root/src/net/eathena/itemflags.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-20 17:53:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-20 18:28:49 +0300
commit2ce675592a1a96cc9960082485797045a921676d (patch)
treef55cdb7c20ccc2a15c2649657caadd0ba0675c6e /src/net/eathena/itemflags.h
parent12596b11b89baa167704d8cddd4599c937826062 (diff)
downloadmanaplus-2ce675592a1a96cc9960082485797045a921676d.tar.gz
manaplus-2ce675592a1a96cc9960082485797045a921676d.tar.bz2
manaplus-2ce675592a1a96cc9960082485797045a921676d.tar.xz
manaplus-2ce675592a1a96cc9960082485797045a921676d.zip
eathena: parse item flags.
Diffstat (limited to 'src/net/eathena/itemflags.h')
-rw-r--r--src/net/eathena/itemflags.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/net/eathena/itemflags.h b/src/net/eathena/itemflags.h
new file mode 100644
index 000000000..df4a98eaf
--- /dev/null
+++ b/src/net/eathena/itemflags.h
@@ -0,0 +1,41 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_EATHENA_ITEMFLAGS_H
+#define NET_EATHENA_ITEMFLAGS_H
+
+#include "localconsts.h"
+
+namespace EAthena
+{
+ union ItemFlags final
+ {
+ struct bits
+ {
+ unsigned char isIdentified : 1;
+ unsigned char isDamaged : 1;
+ unsigned char isFavorite : 1;
+ unsigned char spareBits : 5;
+ } __attribute__((packed));
+ uint8_t byte;
+ } __attribute__((packed));
+} // namespace EAthena
+
+#endif // NET_EATHENA_ITEMFLAGS_H