1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2013 Laszlo KIS-ADAM (dfighter) <dfighter1985@gmail.com>
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #include "interface_manager.h"
26 #include "nel/gui/action_handler.h"
27 #include "../net_manager.h"
32 using namespace NLMISC
;
37 // ***************************************************************************
38 // sendMsgToServer Helper
39 void sendMsgToServer(const string
&sMsg
)
42 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
44 //nlinfo("impulseCallBack : %s sent", sMsg.c_str());
49 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
53 // ***************************************************************************
54 // sendMsgToServer Helper
55 void sendMsgToServer(const string
&sMsg
, uint8 u8
)
58 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
60 //nlinfo("impulseCallBack : %s %d sent", sMsg.c_str(), u8);
66 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
70 // ***************************************************************************
71 // sendMsgToServer Helper
72 void sendMsgToServer(const string
&sMsg
, uint8 u8n1
, uint8 u8n2
)
75 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
77 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u8n1, u8n2);
84 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
88 // ***************************************************************************
89 // sendMsgToServer Helper
90 void sendMsgToServer(const string
&sMsg
, uint8 u8n1
, uint8 u8n2
, uint8 u8n3
)
93 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
95 //nlinfo("impulseCallBack : %s %d %d %d sent", sMsg.c_str(), u8n1, u8n2, u8n3);
103 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
107 // ***************************************************************************
108 // sendMsgToServer Helper
109 void sendMsgToServer(const string
&sMsg
, uint8 u8n1
, uint8 u8n2
, uint8 u8n3
, uint8 u8n4
)
112 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
114 //nlinfo("impulseCallBack : %s %d %d %d %d sent", sMsg.c_str(), u8n1, u8n2, u8n3, u8n4);
123 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
127 // ***************************************************************************
128 // sendMsgToServer Helper
129 void sendMsgToServer(const string
&sMsg
, uint8 u8n1
, uint8 u8n2
, uint8 u8n3
, uint8 u8n4
, uint8 u8n5
)
132 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
134 //nlinfo("impulseCallBack : %s %d %d %d %d %d sent", sMsg.c_str(), u8n1, u8n2, u8n3, u8n4, u8n5);
144 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
148 // ***************************************************************************
149 // sendMsgToServer Helper
150 void sendMsgToServer(const string
&sMsg
, uint8 u8n1
, uint32 u32n2
)
153 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
155 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u8n1, u32n2);
162 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
166 // ***************************************************************************
167 void sendMsgToServer(const std::string
&sMsg
, uint32 u32n1
)
170 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
172 //nlinfo("impulseCallBack : %s %d sent", sMsg.c_str(), u32n1);
178 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
182 // ***************************************************************************
183 // sendMsgToServer Helper
184 void sendMsgToServer(const string
&sMsg
, uint32 u32n1
, uint8 u8n2
)
187 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
189 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u32n1, u8n2);
196 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
200 // ***************************************************************************
201 // sendMsgToServer Helper
202 void sendMsgToServer(const string
&sMsg
, uint32 u32n1
, uint8 u8n2
, uint8 u8n3
)
205 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
207 //nlinfo("impulseCallBack : %s %d %d %d sent", sMsg.c_str(), u32n1, u8n2, u8n3);
215 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());
220 // ***************************************************************************
221 void sendMsgToServer(const std::string
&sMsg
, uint32 u32n1
, uint32 u32n2
)
224 if(GenericMsgHeaderMngr
.pushNameToStream(sMsg
, out
))
226 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u32n1, u32n2);
233 nlwarning("command : unknown message name : '%s'.", sMsg
.c_str());