コード例 #1
0
ファイル: LeagueEntry.cs プロジェクト: golf1052/CreepScore
 /// <summary>
 /// Load MiniSeries if the player is in one
 /// </summary>
 /// <param name="o">The json object representing the miniseries</param>
 /// <remarks>If the player is not in a miniseries o will be null</remarks>
 void LoadMiniSeries(JObject o)
 {
     if (o != null)
     {
         miniSeries = new MiniSeries((int)o["losses"],
                                     (string)o["progress"],
                                     (int)o["target"],
                                     (int)o["wins"]);
     }
 }
コード例 #2
0
ファイル: LeagueEntry.cs プロジェクト: mattregul/CreepScore
 /// <summary>
 /// Load MiniSeries if the player is in one
 /// </summary>
 /// <param name="o">The json object representing the miniseries</param>
 /// <remarks>If the player is not in a miniseries o will be null</remarks>
 void LoadMiniSeries(JObject o)
 {
     if (o != null)
     {
         miniSeries = new MiniSeries((int)o["losses"],
             (string)o["progress"],
             (int)o["target"],
             (int)o["wins"]);
     }
 }