private void AddJudgeToPoolData(JudgeInventoryItemData judge, EJudgeCategory category, EDivision division, ERound round, EPool pool) { PoolData pd = parentWindow.tournamentData.GetPool(division, round, pool); RegisteredPlayer rp; if (parentWindow.TryFindRegisteredPlayer(judge.PlayerName, out rp)) { pd.judgesData.Add(rp, category); } }
public void OnJudgeAdd(JudgeInventoryItemData judge, EJudgeCategory category, int inControlIndex) { if (inControlIndex != controlIndex) { return; } AddJudgeToPoolData(judge, category, division, ConvertedRound, EnumConverter.ConvertPoolValue(round, controlIndex)); judgeData.Add(judge, category); }
public bool JudgeExists(RegisteredPlayer judge, EJudgeCategory category) { switch (category) { case EJudgeCategory.ExAi: return(JudgeExists(judge, ref judgesEx)); case EJudgeCategory.Variety: return(JudgeExists(judge, ref judgesAi)); case EJudgeCategory.Difficulty: return(JudgeExists(judge, ref judgesDiff)); } return(false); }
public void Add(JudgeInventoryItemData judge, EJudgeCategory category) { switch (category) { case EJudgeCategory.ExAi: judgesExAi.Add(judge); break; case EJudgeCategory.Variety: judgesVariety.Add(judge); break; case EJudgeCategory.Difficulty: judgesDiff.Add(judge); break; } }
public void Add(RegisteredPlayer judge, EJudgeCategory category) { if (JudgeExists(judge, category)) { return; } switch (category) { case EJudgeCategory.ExAi: judgesEx.Add(judge); break; case EJudgeCategory.Variety: judgesAi.Add(judge); break; case EJudgeCategory.Difficulty: judgesDiff.Add(judge); break; } }
private void AddJudge(JudgeInventoryItemData judge, string buttonContent, int controlIndex) { EJudgeCategory category = EJudgeCategory.ExAi; switch (buttonContent) { case "ExAi": category = EJudgeCategory.ExAi; break; case "Variety": category = EJudgeCategory.Variety; break; case "Diff": category = EJudgeCategory.Difficulty; break; } parentWindow.OnJudgeAdd(judge, category, controlIndex); UpdateJudgeInventory(); }