MCPcopy Create free account
hub / github.com/ZDoom/Raze / Net_SetCommandHandler

Function Net_SetCommandHandler

source/core/d_net.cpp:1943–1947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1941NetCommandHandler nethandlers[DEM_MAX];
1942
1943void Net_SetCommandHandler(EDemoCommand cmd, NetCommandHandler handler) noexcept
1944{
1945 assert(cmd >= 0 && cmd < DEM_MAX);
1946 if (cmd >= 0 && cmd < DEM_MAX) nethandlers[cmd] = handler;
1947}
1948
1949// [RH] Execute a special "ticcmd". The type byte should
1950// have already been read, and the stream is positioned

Callers 5

InitCheatsFunction · 0.85
InitCheatsFunction · 0.85
InitCheatsFunction · 0.85
InitCheatsFunction · 0.85
D_CheckNetGameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected