blob: 6fd6af0936688214fde2bd545a1ca3a119278d13 [file] [log] [blame]
James Kuszmaulb13e13f2023-11-22 20:44:04 -08001// 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 Henderson80bec322024-01-09 15:48:44 -080018#include "fields/2024-crescendo.h"
James Kuszmaulb13e13f2023-11-22 20:44:04 -080019
20using namespace fields;
21
22static const Field kFields[] = {
Maxwell Henderson80bec322024-01-09 15:48:44 -080023 {"2024 Crescendo", GetResource_2024_crescendo_json,
24 GetResource_2024_field_png},
James Kuszmaulb13e13f2023-11-22 20:44:04 -080025 {"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
49std::span<const Field> fields::GetFields() {
50 return kFields;
51}