public override void SendResultsToHeadJudger(int InDiv, int InRound, int InPool, int InTeam) { base.SendResultsToHeadJudger(InDiv, InRound, InPool, InTeam); Debug.Log(" SendResultsToHeadJudger " + InDiv + " " + InRound + " " + InPool + " " + InTeam); RoutineScoreData SData = Global.AllData.AllDivisions[InDiv].Rounds[InRound].Pools[InPool].Teams[InTeam].Data.RoutineScores; CurData.Division = (EDivision)InDiv; CurData.Round = (ERound)InRound; CurData.Pool = (EPool)InPool; CurData.Team = InTeam; CurData.JudgeNameId = GetJudgeNameId(); SData.SetExResults(CurData); if (Networking.IsConnectedToServer) { Debug.Log(" send ex data to server " + CurData.Point1Count); Global.NetObj.ClientSendFinishJudgingEx(CurData.SerializeToString()); } else { CachedData = new ExData(CurData); Networking.bNeedSendCachedResults = true; } }
public override void SendCachedResultsToHeadJudger() { base.SendCachedResultsToHeadJudger(); if (Networking.IsConnectedToServer) { Global.NetObj.ClientSendFinishJudgingEx(CachedData.SerializeToString()); Networking.bNeedSendCachedResults = false; } }