James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame] | 1 | // Copyright (c) FIRST and other WPILib contributors. |
| 2 | // Open Source Software; you can modify and/or share it under the terms of |
| 3 | // the WPILib BSD license file in the root directory of this project. |
| 4 | |
| 5 | #include "fields/fields.h" |
| 6 | |
| 7 | #include "fields/2018-powerup.h" |
| 8 | #include "fields/2019-deepspace.h" |
| 9 | #include "fields/2020-infiniterecharge.h" |
| 10 | #include "fields/2021-barrel.h" |
| 11 | #include "fields/2021-bounce.h" |
| 12 | #include "fields/2021-galacticsearcha.h" |
| 13 | #include "fields/2021-galacticsearchb.h" |
| 14 | #include "fields/2021-infiniterecharge.h" |
| 15 | #include "fields/2021-slalom.h" |
| 16 | #include "fields/2022-rapidreact.h" |
| 17 | #include "fields/2023-chargedup.h" |
Maxwell Henderson | 80bec32 | 2024-01-09 15:48:44 -0800 | [diff] [blame^] | 18 | #include "fields/2024-crescendo.h" |
James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame] | 19 | |
| 20 | using namespace fields; |
| 21 | |
| 22 | static const Field kFields[] = { |
Maxwell Henderson | 80bec32 | 2024-01-09 15:48:44 -0800 | [diff] [blame^] | 23 | {"2024 Crescendo", GetResource_2024_crescendo_json, |
| 24 | GetResource_2024_field_png}, |
James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame] | 25 | {"2023 Charged Up", GetResource_2023_chargedup_json, |
| 26 | GetResource_2023_field_png}, |
| 27 | {"2022 Rapid React", GetResource_2022_rapidreact_json, |
| 28 | GetResource_2022_field_png}, |
| 29 | {"2021 Barrel Racing Path", GetResource_2021_barrelracingpath_json, |
| 30 | GetResource_2021_barrel_png}, |
| 31 | {"2021 Bounce Path", GetResource_2021_bouncepath_json, |
| 32 | GetResource_2021_bounce_png}, |
| 33 | {"2021 Galactic Search A", GetResource_2021_galacticsearcha_json, |
| 34 | GetResource_2021_galacticsearcha_png}, |
| 35 | {"2021 Galactic Search B", GetResource_2021_galacticsearchb_json, |
| 36 | GetResource_2021_galacticsearchb_png}, |
| 37 | {"2021 Infinite Recharge", GetResource_2021_infiniterecharge_json, |
| 38 | GetResource_2021_field_png}, |
| 39 | {"2021 Slalom Path", GetResource_2021_slalompath_json, |
| 40 | GetResource_2021_slalom_png}, |
| 41 | {"2020 Infinite Recharge", GetResource_2020_infiniterecharge_json, |
| 42 | GetResource_2020_field_png}, |
| 43 | {"2019 Destination: Deep Space", GetResource_2019_deepspace_json, |
| 44 | GetResource_2019_field_jpg}, |
| 45 | {"2018 Power Up", GetResource_2018_powerup_json, |
| 46 | GetResource_2018_field_jpg}, |
| 47 | }; |
| 48 | |
| 49 | std::span<const Field> fields::GetFields() { |
| 50 | return kFields; |
| 51 | } |