MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetDiagLevel

Function GetDiagLevel

engine/Poseidon/Network/Network.cpp:185–201  ·  view source on GitHub ↗

Return diagnostics level for given message type

Source from the content-addressed store, hash-verified

183
184// Return diagnostics level for given message type
185int GetDiagLevel(NetworkMessageType type, bool remote)
186{
187 // level == 0 - nothing
188 // level == 1 - errors
189 // level == 2 - message headers
190 // level == 3 - message bodies
191 // level == 4 - all
192 switch (type)
193 {
194 default:
195 case NMTUpdateSeagull:
196 return 0;
197 // copy here to log remote messages (transferred via DPlay)
198 // case NMTGameState:
199 // return remote ? 3 : 0;
200 }
201}
202
203// Names of message types (used for diagnostics output)
204#define NMT_DEFINE_ENUM_NAMES(macro, class, name, description, group) #name,

Callers 4

SendMsgRemoteMethod · 0.85
SendMsgQueueMethod · 0.85
OnMessageMethod · 0.85
OnMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected