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