From 844ffa74c81b946f47caa17d3291eaccf4352e85 Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Thu, 23 Dec 2021 13:55:19 +0100 Subject: [PATCH] event: Add recent and upcoming events --- event.go | 153 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 80 insertions(+), 73 deletions(-) diff --git a/event.go b/event.go index 94afe11..a700649 100644 --- a/event.go +++ b/event.go @@ -58,38 +58,40 @@ const sgdq = "Summer Games Done Quick" // All the GDQ events, sorted by Event.ID var ( - SGDQ2012 = Event{ID: 1, Short: "SGDQ2012", Name: sgdq, Year: 2012} - AGDQ2012 = Event{ID: 2, Short: "SGDQ2012", Name: agdq, Year: 2012} - SGDQ2011 = Event{ID: 3, Short: "SGDQ2011", Name: sgdq, Year: 2011} - JRDQ = Event{ID: 4, Short: "JRDQ", Name: "Japan Relief Done Quick", Year: 2011} - AGDQ2011 = Event{ID: 5, Short: "AGDQ2011", Name: agdq, Year: 2011} - CGDQ = Event{ID: 6, Short: "CGDQ", Name: "Classic Games Done Quick", Year: 2010} - AGDQ2013 = Event{ID: 7, Short: "AGDQ2013", Name: agdq, Year: 2013} - SGDQ2013 = Event{ID: 8, Short: "SGDQ2013", Name: sgdq, Year: 2013} - AGDQ2014 = Event{ID: 9, Short: "AGDQ2014", Name: agdq, Year: 2014} - SGDQ2014 = Event{ID: 10, Short: "SGDQ2014", Name: sgdq, Year: 2014} - AGDQ2015 = Event{ID: 12, Short: "AGDQ2015", Name: agdq, Year: 2015} - SPOOK = Event{ID: 13, Short: "SPOOK", Name: "Speedrun Spooktacular", Year: 2012} - SGDQ2015 = Event{ID: 16, Short: "SGDQ2015", Name: sgdq, Year: 2015} - AGDQ2016 = Event{ID: 17, Short: "AGDQ2016", Name: agdq, Year: 2016} - SGDQ2016 = Event{ID: 18, Short: "SGDQ2016", Name: sgdq, Year: 2016} - AGDQ2017 = Event{ID: 19, Short: "AGDQ2017", Name: agdq, Year: 2017} - SGDQ2017 = Event{ID: 20, Short: "SGDQ2017", Name: sgdq, Year: 2017} - HRDQ = Event{ID: 21, Short: "HRDQ", Name: "Harvey Relief Done Quick", Year: 2017} - AGDQ2018 = Event{ID: 22, Short: "AGDQ2018", Name: agdq, Year: 2018} - SGDQ2018 = Event{ID: 23, Short: "SGDQ2018", Name: sgdq, Year: 2018} - GDQX2018 = Event{ID: 24, Short: "GDQX2018", Name: "Games Done Quick Express", Year: 2018} - AGDQ2019 = Event{ID: 25, Short: "AGDQ2019", Name: agdq, Year: 2019} - SGDQ2019 = Event{ID: 26, Short: "SGDQ2019", Name: sgdq, Year: 2019} - GDQX2019 = Event{ID: 27, Short: "GDQX2019", Name: "Games Done Quick Express", Year: 2019} - AGDQ2020 = Event{ID: 28, Short: "AGDQ2020", Name: agdq, Year: 2020} - FrostFatales2020 = Event{ID: 29, Short: "FrostFatales2020", Name: "Frost Fatales", Year: 2020} - SGDQ2020 = Event{ID: 30, Short: "SGDQ2020", Name: sgdq, Year: 2020} - CRDQ = Event{ID: 31, Short: "CRDQ", Name: "Corona Relief Done Quick", Year: 2020} - THPSLaunch = Event{ID: 32, Short: "THPSLaunch", Name: "Tony Hawk's Pro Skater 1 + 2 Launch Celebration", Year: 2020} - FleetFatales2020 = Event{ID: 33, Short: "FleetFatales2020", Name: "Fleet Fatales", Year: 2020} - AGDQ2021 = Event{ID: 34, Short: "AGDQ2021", Name: agdq + " Online", Year: 2021} - SGDQ2021 = Event{ID: 35, Short: "SGDQ2021", Name: sgdq + " Online", Year: 2021} + SGDQ2012 = Event{ID: 1, Short: "SGDQ2012", Name: sgdq, Year: 2012} + AGDQ2012 = Event{ID: 2, Short: "SGDQ2012", Name: agdq, Year: 2012} + SGDQ2011 = Event{ID: 3, Short: "SGDQ2011", Name: sgdq, Year: 2011} + JRDQ = Event{ID: 4, Short: "JRDQ", Name: "Japan Relief Done Quick", Year: 2011} + AGDQ2011 = Event{ID: 5, Short: "AGDQ2011", Name: agdq, Year: 2011} + CGDQ = Event{ID: 6, Short: "CGDQ", Name: "Classic Games Done Quick", Year: 2010} + AGDQ2013 = Event{ID: 7, Short: "AGDQ2013", Name: agdq, Year: 2013} + SGDQ2013 = Event{ID: 8, Short: "SGDQ2013", Name: sgdq, Year: 2013} + AGDQ2014 = Event{ID: 9, Short: "AGDQ2014", Name: agdq, Year: 2014} + SGDQ2014 = Event{ID: 10, Short: "SGDQ2014", Name: sgdq, Year: 2014} + AGDQ2015 = Event{ID: 12, Short: "AGDQ2015", Name: agdq, Year: 2015} + SPOOK = Event{ID: 13, Short: "SPOOK", Name: "Speedrun Spooktacular", Year: 2012} + SGDQ2015 = Event{ID: 16, Short: "SGDQ2015", Name: sgdq, Year: 2015} + AGDQ2016 = Event{ID: 17, Short: "AGDQ2016", Name: agdq, Year: 2016} + SGDQ2016 = Event{ID: 18, Short: "SGDQ2016", Name: sgdq, Year: 2016} + AGDQ2017 = Event{ID: 19, Short: "AGDQ2017", Name: agdq, Year: 2017} + SGDQ2017 = Event{ID: 20, Short: "SGDQ2017", Name: sgdq, Year: 2017} + HRDQ = Event{ID: 21, Short: "HRDQ", Name: "Harvey Relief Done Quick", Year: 2017} + AGDQ2018 = Event{ID: 22, Short: "AGDQ2018", Name: agdq, Year: 2018} + SGDQ2018 = Event{ID: 23, Short: "SGDQ2018", Name: sgdq, Year: 2018} + GDQX2018 = Event{ID: 24, Short: "GDQX2018", Name: "Games Done Quick Express", Year: 2018} + AGDQ2019 = Event{ID: 25, Short: "AGDQ2019", Name: agdq, Year: 2019} + SGDQ2019 = Event{ID: 26, Short: "SGDQ2019", Name: sgdq, Year: 2019} + GDQX2019 = Event{ID: 27, Short: "GDQX2019", Name: "Games Done Quick Express", Year: 2019} + AGDQ2020 = Event{ID: 28, Short: "AGDQ2020", Name: agdq, Year: 2020} + FrostFatales2020 = Event{ID: 29, Short: "FrostFatales2020", Name: "Frost Fatales", Year: 2020} + SGDQ2020 = Event{ID: 30, Short: "SGDQ2020", Name: sgdq, Year: 2020} + CRDQ = Event{ID: 31, Short: "CRDQ", Name: "Corona Relief Done Quick", Year: 2020} + THPSLaunch = Event{ID: 32, Short: "THPSLaunch", Name: "Tony Hawk's Pro Skater 1 + 2 Launch Celebration", Year: 2020} + FleetFatales2020 = Event{ID: 33, Short: "FleetFatales2020", Name: "Fleet Fatales", Year: 2020} + AGDQ2021 = Event{ID: 34, Short: "AGDQ2021", Name: agdq + " Online", Year: 2021} + SGDQ2021 = Event{ID: 35, Short: "SGDQ2021", Name: sgdq + " Online", Year: 2021} + FlamesFatales2021 = Event{ID: 36, Short: "FlamesFatales2021", Name: "Flames Fatales", Year: 2021} + AGDQ2022 = Event{ID: 37, Short: "AGDQ2022", Name: agdq + " Online", Year: 2022} ) func (e Event) String() string { @@ -97,47 +99,50 @@ func (e Event) String() string { } var eventsByName = map[string]Event{ - "classic": CGDQ, - "cgdq": CGDQ, - "cgdq2010": CGDQ, - "agdq2011": AGDQ2011, - "japan": JRDQ, - "jrdq": JRDQ, - "jrdq2011": JRDQ, - "sgdq2011": SGDQ2011, - "agdq2012": AGDQ2012, - "sgdq2012": SGDQ2012, - "spook": SPOOK, - "spook2012": SPOOK, - "agdq2013": AGDQ2013, - "sgdq2013": SGDQ2013, - "agdq2014": AGDQ2014, - "sgdq2014": SGDQ2014, - "agdq2015": AGDQ2015, - "sgdq2015": SGDQ2015, - "agdq2016": AGDQ2016, - "sgdq2016": SGDQ2016, - "agdq2017": AGDQ2017, - "sgdq2017": SGDQ2017, - "harvey": HRDQ, - "hrdq": HRDQ, - "hrdq2017": HRDQ, - "agdq2018": AGDQ2018, - "sgdq2018": SGDQ2018, - "gdqx2018": GDQX2018, - "agdq2019": AGDQ2019, - "sgdq2019": SGDQ2019, - "gdqx2019": GDQX2019, - "agdq2020": AGDQ2020, - "frostfatales2020": FrostFatales2020, - "sgdq2020": SGDQ2020, - "corona": CRDQ, - "crdq": CRDQ, - "crdq2020": CRDQ, - "thps": THPSLaunch, - "thpslaunch": THPSLaunch, - "fleetfatales2020": FleetFatales2020, - "agdq2021": AGDQ2021, + "classic": CGDQ, + "cgdq": CGDQ, + "cgdq2010": CGDQ, + "agdq2011": AGDQ2011, + "japan": JRDQ, + "jrdq": JRDQ, + "jrdq2011": JRDQ, + "sgdq2011": SGDQ2011, + "agdq2012": AGDQ2012, + "sgdq2012": SGDQ2012, + "spook": SPOOK, + "spook2012": SPOOK, + "agdq2013": AGDQ2013, + "sgdq2013": SGDQ2013, + "agdq2014": AGDQ2014, + "sgdq2014": SGDQ2014, + "agdq2015": AGDQ2015, + "sgdq2015": SGDQ2015, + "agdq2016": AGDQ2016, + "sgdq2016": SGDQ2016, + "agdq2017": AGDQ2017, + "sgdq2017": SGDQ2017, + "harvey": HRDQ, + "hrdq": HRDQ, + "hrdq2017": HRDQ, + "agdq2018": AGDQ2018, + "sgdq2018": SGDQ2018, + "gdqx2018": GDQX2018, + "agdq2019": AGDQ2019, + "sgdq2019": SGDQ2019, + "gdqx2019": GDQX2019, + "agdq2020": AGDQ2020, + "frostfatales2020": FrostFatales2020, + "sgdq2020": SGDQ2020, + "corona": CRDQ, + "crdq": CRDQ, + "crdq2020": CRDQ, + "thps": THPSLaunch, + "thpslaunch": THPSLaunch, + "fleetfatales2020": FleetFatales2020, + "agdq2021": AGDQ2021, + "sgdq2021": SGDQ2021, + "flamesfatales2021": FlamesFatales2021, + "agdq2022": AGDQ2022, } // GetEventByName tries to find an event matching the input @@ -179,6 +184,8 @@ var eventsByID = map[uint]Event{ 33: FleetFatales2020, 34: AGDQ2021, 35: SGDQ2021, + 36: FlamesFatales2021, + 37: AGDQ2022, } // GetEventByID fetches the event by ID