MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / SNetRegisterEventHandler

Method SNetRegisterEventHandler

Source/dvlnet/base.cpp:387–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387bool base::SNetRegisterEventHandler(event_type evtype, SEVTHANDLER func)
388{
389 /*
390 engine registers handler for:
391 EVENT_TYPE_PLAYER_LEAVE_GAME
392 EVENT_TYPE_PLAYER_CREATE_GAME (should be raised during SNetCreateGame
393 for non-creating player)
394 EVENT_TYPE_PLAYER_MESSAGE (for bnet? not implemented)
395 (engine uses same function for all three)
396*/
397 registered_handlers[evtype] = func;
398 return true;
399}
400
401bool base::SNetLeaveGame(int type)
402{

Callers 1

SNetRegisterEventHandlerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected