Esempio n. 1
0
    public void Tie(byte[] matchData)
    {
        List <UM_TMB_ParticipantResult> results = new List <UM_TMB_ParticipantResult>();

        foreach (UM_TBM_Participant p in Participants)
        {
            UM_TMB_ParticipantResult r = new UM_TMB_ParticipantResult(p.Id, UM_TBM_Outcome.Tied);
            results.Add(r);
        }

        Finish(matchData, results.ToArray());
    }
Esempio n. 2
0
    public void Lose(byte[] matchData)
    {
        List <UM_TMB_ParticipantResult> results = new List <UM_TMB_ParticipantResult>();

        foreach (UM_TBM_Participant p in Participants)
        {
            UM_TMB_ParticipantResult r;
            if (p == LocalParticipant)
            {
                r = new UM_TMB_ParticipantResult(p.Id, UM_TBM_Outcome.Lost);
            }
            else
            {
                r = new UM_TMB_ParticipantResult(p.Id, UM_TBM_Outcome.Won);
            }

            results.Add(r);
        }

        Finish(matchData, results.ToArray());
    }