MCPcopy Index your code
hub / github.com/4ian/GDevelop / clearPlayerTempData

Function clearPlayerTempData

Extensions/Multiplayer/messageManager.ts:2439–2445  ·  view source on GitHub ↗
(playerNumber: number)

Source from the content-addressed store, hash-verified

2437 };
2438
2439 const clearPlayerTempData = (playerNumber: number) => {
2440 // Remove the player from the list of players.
2441 // This will cause the next hearbeat to not include this player
2442 // and the others will consider them as disconnected.
2443 delete _playersLastRoundTripTimes[playerNumber];
2444 delete _playersInfo[playerNumber];
2445 };
2446
2447 return {
2448 sendDataTo,

Callers 1

markPlayerAsDisconnectedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected