Esempio n. 1
0
 public static void SetGymTeam(this IGymTeamInfo info, uint badge, ushort[] team)
 {
     for (uint slot = 0; slot < team.Length; slot++)
     {
         info.SetBadgeVictorySpecies(badge, slot, team[slot]);
     }
 }
Esempio n. 2
0
 public static void SetGymTeams(this IGymTeamInfo info, ushort[][] teams)
 {
     for (uint badge = 0; badge < teams.Length; badge++)
     {
         info.SetGymTeam(badge, teams[badge]);
     }
 }
Esempio n. 3
0
 public static ushort[][] GetGymTeams(this IGymTeamInfo info)
 {
     ushort[][] teams = new ushort[8][];
     for (uint badge = 0; badge < teams.Length; badge++)
     {
         teams[badge] = GetGymTeam(info, badge);
     }
     return(teams);
 }
Esempio n. 4
0
    private static ushort[] GetGymTeam(IGymTeamInfo info, uint badge)
    {
        var team = new ushort[6];

        for (uint slot = 0; slot < team.Length; slot++)
        {
            team[slot] = info.GetBadgeVictorySpecies(badge, slot);
        }
        return(team);
    }