MCPcopy Create free account
hub / github.com/ddnet/ddnet / SendPackMsgOne

Method SendPackMsgOne

src/engine/server.h:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182 template<class T>
183 int SendPackMsgOne(const T *pMsg, int Flags, int ClientId)
184 {
185 dbg_assert(ClientId != -1, "SendPackMsgOne called with -1");
186 CMsgPacker Packer(T::ms_MsgId, false, protocol7::is_sixup<T>::value);
187
188 if(pMsg->Pack(&Packer))
189 return -1;
190 return SendMsg(&Packer, Flags, ClientId);
191 }
192
193 bool Translate(int &Target, int Client)
194 {

Callers

nothing calls this directly

Calls 1

PackMethod · 0.45

Tested by

no test coverage detected