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

Function clearAllMessagesTempData

Extensions/Multiplayer/messageManager.ts:2427–2437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2425 };
2426
2427 const clearAllMessagesTempData = () => {
2428 _playersLastRoundTripTimes = {};
2429 _playersInfo = {};
2430 lastReceivedGameSyncDataUpdates.clear();
2431 lastReceivedSceneSyncDataUpdates.clear();
2432 processedCustomMessagesCache.clear();
2433 _playerNumbersWhoJustLeft = [];
2434 _playerNumbersWhoJustJoined = [];
2435 expectedMessageAcknowledgements = {};
2436 _lastClockReceivedByInstanceByScene = {};
2437 };
2438
2439 const clearPlayerTempData = (playerNumber: number) => {
2440 // Remove the player from the list of players.

Callers 2

markPlayerAsDisconnectedFunction · 0.85

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected