Пример #1
0
 /// <summary>
 /// Returns a polygon that contains each position of a team champion
 /// </summary>
 /// <param name="allyTeam">returns the polygon for ally team if true, enemy if false</param>
 /// <returns></returns>
 internal static Geometry.Polygon GetTeamPolygon(bool allyTeam = true)
 {
     var poly = new Geometry.Polygon();
     foreach (var v2 in allyTeam ? GetAllyPosList() : GetEnemyPosList())
     {
         poly.Add(v2);
     }
     poly.ToClipperPath();
     return poly;
 }