aboutsummaryrefslogtreecommitdiff
path: root/src/reader.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-07-01 07:21:10 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-07-01 07:21:10 -0300
commit6243967f1fac3af8ed3e72790cabed0f79978bdb (patch)
tree35f0d27b4c280622c368a9fa94815b8deb7a990f /src/reader.hh
parent6c8aa85b8b578db03a8c5f0dc0b7e80605592d45 (diff)
downloadgame-6243967f1fac3af8ed3e72790cabed0f79978bdb.tar.gz
game-6243967f1fac3af8ed3e72790cabed0f79978bdb.zip
fix `operator=` for `TChannel`, `TParty`, and `THouse`
I had focused on copying the `vector` fields for theses structs but, being the copy operator, you need to copy everything over.
Diffstat (limited to 'src/reader.hh')
-rw-r--r--src/reader.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/reader.hh b/src/reader.hh
new file mode 100644
index 0000000..2dbf02f
--- /dev/null
+++ b/src/reader.hh
@@ -0,0 +1,17 @@
+#ifndef TIBIA_READER_HH_
+#define TIBIA_READER_HH_ 1
+
+#include "common.hh"
+
+enum TReaderThreadOrderType: int {
+ READER_ORDER_TERMINATE = 0,
+ READER_ORDER_LOADSECTOR = 1,
+ READER_ORDER_LOADCHARACTER = 2,
+};
+
+enum TReaderThreadReplyType: int {
+ READER_REPLY_SECTORDATA = 0,
+ READER_REPLY_CHARACTERDATA = 1,
+};
+
+#endif //TIBIA_READER_HH