aboutsummaryrefslogtreecommitdiff
path: root/src/netmessagemaker.h
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-05-10 19:48:11 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-05-11 00:20:57 +0200
commit51e9393c1f6c9eaac554f821f5327f63bd09c8cf (patch)
treedf9eb5573c819652a8a337a5e87af18cda0083a2 /src/netmessagemaker.h
parent88d8b4e182bfc75e8496f7046af7aab93307b9d0 (diff)
refactor: s/command/msg_type/ in CNetMsgMaker and CSerializedNetMsg
Diffstat (limited to 'src/netmessagemaker.h')
-rw-r--r--src/netmessagemaker.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/netmessagemaker.h b/src/netmessagemaker.h
index 2efb384a7b..ffb3fe2f29 100644
--- a/src/netmessagemaker.h
+++ b/src/netmessagemaker.h
@@ -15,18 +15,18 @@ public:
explicit CNetMsgMaker(int nVersionIn) : nVersion(nVersionIn){}
template <typename... Args>
- CSerializedNetMsg Make(int nFlags, std::string sCommand, Args&&... args) const
+ CSerializedNetMsg Make(int nFlags, std::string msg_type, Args&&... args) const
{
CSerializedNetMsg msg;
- msg.command = std::move(sCommand);
+ msg.m_type = std::move(msg_type);
CVectorWriter{ SER_NETWORK, nFlags | nVersion, msg.data, 0, std::forward<Args>(args)... };
return msg;
}
template <typename... Args>
- CSerializedNetMsg Make(std::string sCommand, Args&&... args) const
+ CSerializedNetMsg Make(std::string msg_type, Args&&... args) const
{
- return Make(0, std::move(sCommand), std::forward<Args>(args)...);
+ return Make(0, std::move(msg_type), std::forward<Args>(args)...);
}
private: