1#include "translation_context.h"
2
3void CTranslationContext::Reset()
4{
5 m_ServerSettings.Reset();
6
7 std::fill(first: std::begin(arr&: m_apPlayerInfosRace), last: std::end(arr&: m_apPlayerInfosRace), value: nullptr);
8
9 for(CClientData &Client : m_aClients)
10 Client.Reset();
11
12 std::fill(first: std::begin(arr&: m_aDamageTaken), last: std::end(arr&: m_aDamageTaken), value: 0);
13 std::fill(first: std::begin(arr&: m_aDamageTakenTick), last: std::end(arr&: m_aDamageTakenTick), value: 0);
14 std::fill(first: std::begin(arr&: m_aLocalClientId), last: std::end(arr&: m_aLocalClientId), value: -1);
15
16 m_ShouldSendGameInfo = false;
17 m_GameStateFlags7 = 0;
18
19 m_GameFlags = 0;
20 m_ScoreLimit = 0;
21 m_TimeLimit = 0;
22 m_MatchNum = 0;
23 m_MatchCurrent = 0;
24
25 m_MapdownloadTotalsize = -1;
26 m_MapDownloadChunkSize = 0;
27 m_MapDownloadChunksPerRequest = 0;
28
29 m_FlagCarrierBlue = 0;
30 m_FlagCarrierRed = 0;
31 m_TeamscoreRed = 0;
32 m_TeamscoreBlue = 0;
33
34 m_GameStartTick7 = 0;
35 m_GameStateEndTick7 = 0;
36}
37