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" |
| 18 | |
| 19 | using namespace fields; |
| 20 | |
| 21 | static const Field kFields[] = { |
| 22 | {"2023 Charged Up", GetResource_2023_chargedup_json, |
| 23 | GetResource_2023_field_png}, |
| 24 | {"2022 Rapid React", GetResource_2022_rapidreact_json, |
| 25 | GetResource_2022_field_png}, |
| 26 | {"2021 Barrel Racing Path", GetResource_2021_barrelracingpath_json, |
| 27 | GetResource_2021_barrel_png}, |
| 28 | {"2021 Bounce Path", GetResource_2021_bouncepath_json, |
| 29 | GetResource_2021_bounce_png}, |
| 30 | {"2021 Galactic Search A", GetResource_2021_galacticsearcha_json, |
| 31 | GetResource_2021_galacticsearcha_png}, |
| 32 | {"2021 Galactic Search B", GetResource_2021_galacticsearchb_json, |
| 33 | GetResource_2021_galacticsearchb_png}, |
| 34 | {"2021 Infinite Recharge", GetResource_2021_infiniterecharge_json, |
| 35 | GetResource_2021_field_png}, |
| 36 | {"2021 Slalom Path", GetResource_2021_slalompath_json, |
| 37 | GetResource_2021_slalom_png}, |
| 38 | {"2020 Infinite Recharge", GetResource_2020_infiniterecharge_json, |
| 39 | GetResource_2020_field_png}, |
| 40 | {"2019 Destination: Deep Space", GetResource_2019_deepspace_json, |
| 41 | GetResource_2019_field_jpg}, |
| 42 | {"2018 Power Up", GetResource_2018_powerup_json, |
| 43 | GetResource_2018_field_jpg}, |
| 44 | }; |
| 45 | |
| 46 | std::span<const Field> fields::GetFields() { |
| 47 | return kFields; |
| 48 | } |