public StatisticData AddStatistic(string name, StatisticType dataType, StatisticStates state, string message, PatientJoint affectedJoint) { var statistic = new StatisticData(date, name, dataType, state, message, affectedJoint, GameManager.ActiveExercise, GameManager.ActivePatient); GameManager.ActivePatient.CurrentStatistic.Add(statistic); return(statistic); }
public StatisticData(long date, string name, StatisticType dataType, StatisticStates state, string message, PatientJoint affectedJoint, Exercise exercise, Patient patient) { var now = DateTime.Now; this.name = name; this.dataType = (long)dataType; this.state = (long)state; this.date = date; this.startTime = now.TimeOfDay.Ticks; this.endTime = now.TimeOfDay.Ticks; this.message = message; this.affectedJoint = affectedJoint; this.exercise = exercise; this.patient = patient; }