コード例 #1
0
        public void SetRunnerSplit(int runnerID, int controlcode, int time)
        {
            if (!IsRunnerAdded(runnerID))
            {
                throw new ApplicationException("Runner is not added! {" + runnerID + "} [SetRunnerResult]");
            }
            Runner r = (Runner)m_Runners[runnerID];

            if (r.HasSplitChanged(controlcode, time))
            {
                r.SetSplitTime(controlcode, time);
                m_RunnersToUpdate.Add(r);
                if (!m_CurrentlyBuffering)
                {
                    FireLogMsg("Runner Split Changes: [" + r.Name + ", {cn: " + controlcode + ", t: " + time + "}]");
                }
            }
        }