summaryrefslogtreecommitdiff
path: root/src/net/tmwa/network.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-17 09:19:52 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-18 08:53:51 +0200
commit1c19fb5173c59b8dd7de10af93347bc9d9279e7e (patch)
tree48e1f3cf9ab986de82d2becd0dbb35f21c2f8ec2 /src/net/tmwa/network.h
parentaecbf876cd0a7894396a2e5034af9d93bf028aa0 (diff)
downloadmana-1c19fb5173c59b8dd7de10af93347bc9d9279e7e.tar.gz
mana-1c19fb5173c59b8dd7de10af93347bc9d9279e7e.tar.bz2
mana-1c19fb5173c59b8dd7de10af93347bc9d9279e7e.tar.xz
mana-1c19fb5173c59b8dd7de10af93347bc9d9279e7e.zip
Simplify TmwAthena::MessageOut
Since for tmwAthena we're writing messages directly into the output buffer, the MessageOut implementation does not need any members. Also used SDL_SwapLE16 and SDL_SwapLE32 for convenience.
Diffstat (limited to 'src/net/tmwa/network.h')
-rw-r--r--src/net/tmwa/network.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/tmwa/network.h b/src/net/tmwa/network.h
index 36d8cafd..4069f916 100644
--- a/src/net/tmwa/network.h
+++ b/src/net/tmwa/network.h
@@ -90,15 +90,13 @@ class Network
NET_ERROR
};
- protected:
+ private:
friend int networkThread(void *data);
friend class MessageOut;
- static Network *instance();
-
void setError(const std::string &error);
- Uint16 readWord(int pos);
+ uint16_t readWord(int pos);
bool realConnect();