本文整理汇总了C#中PlayerSquad.getRoundKdr方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerSquad.getRoundKdr方法的具体用法?C# PlayerSquad.getRoundKdr怎么用?C# PlayerSquad.getRoundKdr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerSquad
的用法示例。
在下文中一共展示了PlayerSquad.getRoundKdr方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getSortFieldValueStr
private string getSortFieldValueStr(PlayerSquad squad, string phase) {
string sort_method = getStringVarValue(phase);
if (sort_method.CompareTo("kdr_asc_round") == 0 || sort_method.CompareTo("kdr_desc_round") == 0)
return "kdr_round: " + Math.Round(squad.getRoundKdr(), 2);
else if (sort_method.CompareTo("score_asc_round") == 0 || sort_method.CompareTo("score_desc_round") == 0)
return "score_round: " + Math.Round(squad.getRoundScore(), 2);
else if (sort_method.CompareTo("spm_asc_round") == 0 || sort_method.CompareTo("spm_desc_round") == 0)
return "spm_round: " + Math.Round(squad.getRoundSpm(), 2);
else if (sort_method.CompareTo("kpm_asc_round") == 0 || sort_method.CompareTo("kpm_desc_round") == 0)
return "kpm_round: " + Math.Round(squad.getRoundKpm(), 2);
else if (sort_method.CompareTo("time_asc_round") == 0 || sort_method.CompareTo("time_desc_round") == 0)
return "time_round: " + squad.getRoundTime();
else if (sort_method.CompareTo("random_value") == 0 || sort_method.CompareTo("random_value") == 0)
return "random_value: " + squad.getRandomValue();
else if (sort_method.CompareTo("kdr_asc_online") == 0 || sort_method.CompareTo("kdr_desc_online") == 0)
return "kdr_online: " + Math.Round(squad.getOnlineKdr(), 2);
else if (sort_method.CompareTo("kpm_asc_online") == 0 || sort_method.CompareTo("kpm_desc_online") == 0)
return "kpm_online: " + Math.Round(squad.getOnlineKpm(), 2);
else if (sort_method.CompareTo("spm_asc_online") == 0 || sort_method.CompareTo("spm_desc_online") == 0)
return "spm_online: " + Math.Round(squad.getOnlineSpm(), 2);
else if (sort_method.CompareTo("kills_asc_online") == 0 || sort_method.CompareTo("kills_desc_online") == 0)
return "kills_online: " + Math.Round(squad.getOnlineKills(), 2);
else if (sort_method.CompareTo("deaths_asc_online") == 0 || sort_method.CompareTo("deaths_desc_online") == 0)
return "deaths_online: " + Math.Round(squad.getOnlineDeaths(), 2);
else if (sort_method.CompareTo("skill_asc_online") == 0 || sort_method.CompareTo("skill_desc_online") == 0)
return "skill_online: " + Math.Round(squad.getOnlineSkill(), 2);
else if (sort_method.CompareTo("quits_asc_online") == 0 || sort_method.CompareTo("quits_desc_online") == 0)
return "quits_online: " + Math.Round(squad.getOnlineQuits(), 2);
else if (sort_method.CompareTo("accuracy_asc_online") == 0 || sort_method.CompareTo("accuracy_desc_online") == 0)
return "accuracy_online: " + Math.Round(squad.getOnlineAccuracy(), 2);
else if (sort_method.CompareTo("score_asc_online") == 0 || sort_method.CompareTo("score_desc_online") == 0)
return "score_online: " + Math.Round(squad.getOnlineScore(), 2);
else if (sort_method.CompareTo("rank_asc_online") == 0 || sort_method.CompareTo("rank_desc_online") == 0)
return "rank_online: " + Math.Round(squad.getOnlineRank(), 2);
DebugWrite("^1^bWARNING^0^n: cannot find squad sort method for ^b" + sort_method + "^0", 1);
return "";
}
示例2: squad_kdr_asc_round_cmp
private int squad_kdr_asc_round_cmp(PlayerSquad left, PlayerSquad right) {
double lval = left.getRoundKdr();
double rval = right.getRoundKdr();
return lval.CompareTo(rval);
}