private void CompileAndSendScore() { if (c_scoringData.l_trickList.Count == 0 && c_scoringData.f_currentFlipTarget.Equals(Constants.ZERO_F) && c_scoringData.f_currentSpinTarget.Equals(Constants.ZERO_F)) { ResetScoringData(); return; } TrickMessageData trickDataOut = new TrickMessageData(); trickDataOut.FlipDegrees = c_scoringData.f_currentFlipTarget; trickDataOut.SpinDegrees = c_scoringData.f_currentSpinTarget; trickDataOut.FlipAngle = 0.0f; trickDataOut.grabs = c_scoringData.l_trickList; trickDataOut.grabTimes = c_scoringData.l_timeList; trickDataOut.Success = true; // TODO: implement bails MessageServer.SendMessage(MessageID.TRICK_FINISHED, new Message(trickDataOut)); MessageServer.SendMessage(MessageID.SCORE_EDIT, new Message(0)); ResetScoringData(); }
public void AddTrick(TrickMessageData trickIn) { l_trickHistory.Add(trickIn); }
public Message(TrickMessageData dataIn) { t_data = dataIn; }