From ebd061dcd9556d5884847bb75f06aed12969a7c5 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 10 Apr 2023 00:50:11 -0700 Subject: [PATCH] location list public (class still internal) --- PKHeX.Core/Game/Locations/Locations4.cs | 6 +++--- PKHeX.Core/Game/Locations/Locations5.cs | 8 ++++---- PKHeX.Core/Game/Locations/Locations6.cs | 6 +++--- PKHeX.Core/Game/Locations/Locations7.cs | 8 ++++---- PKHeX.Core/Game/Locations/Locations7b.cs | 8 ++++---- PKHeX.Core/Game/Locations/Locations8.cs | 8 ++++---- PKHeX.Core/Game/Locations/Locations8a.cs | 8 ++++---- PKHeX.Core/Game/Locations/Locations8b.cs | 8 ++++---- PKHeX.Core/Game/Locations/Locations9.cs | 8 ++++---- 9 files changed, 34 insertions(+), 34 deletions(-) diff --git a/PKHeX.Core/Game/Locations/Locations4.cs b/PKHeX.Core/Game/Locations/Locations4.cs index 9e82d3acc..df7779bd8 100644 --- a/PKHeX.Core/Game/Locations/Locations4.cs +++ b/PKHeX.Core/Game/Locations/Locations4.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations4 { - internal static ReadOnlySpan Met0 => new byte[] + public static ReadOnlySpan Met0 => new byte[] { 000, 001, 002, 003, 004, 005, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, @@ -33,13 +33,13 @@ internal static class Locations4 }; // Ignore the --- met location at index 7. - internal static ReadOnlySpan Met2 => new ushort[] + public static ReadOnlySpan Met2 => new ushort[] { 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012, 2013, 2014, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, diff --git a/PKHeX.Core/Game/Locations/Locations5.cs b/PKHeX.Core/Game/Locations/Locations5.cs index 48915959f..c173aa561 100644 --- a/PKHeX.Core/Game/Locations/Locations5.cs +++ b/PKHeX.Core/Game/Locations/Locations5.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations5 { - internal static ReadOnlySpan Met0 => new byte[] + public static ReadOnlySpan Met0 => new byte[] { 001, 002, 004, 005, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, @@ -24,13 +24,13 @@ internal static class Locations5 150, 151, 152, 153, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30002, 30004, 30005, 30006, 30007, 30008, 30010, 30011, 30012, 30013, 30014, 30015, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40004, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40015, 40016, 40017, 40018, 40019, @@ -45,5 +45,5 @@ internal static class Locations5 40100, 40101, 40102, 40103, 40104, 40105, 40106, 40107, 40108, 40109, }; - internal static ReadOnlySpan Met6 => new ushort[] { 60001, 60003 }; + public static ReadOnlySpan Met6 => new ushort[] { 60001, 60003 }; } diff --git a/PKHeX.Core/Game/Locations/Locations6.cs b/PKHeX.Core/Game/Locations/Locations6.cs index 3d246b511..5d467a0a1 100644 --- a/PKHeX.Core/Game/Locations/Locations6.cs +++ b/PKHeX.Core/Game/Locations/Locations6.cs @@ -47,13 +47,13 @@ internal static class Locations6 350, 352, 354, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30003, 30004, 30005, 30006, 30007, 30008, 30009, 30010, 30011, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40004, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40015, 40016, 40017, 40018, 40019, @@ -65,5 +65,5 @@ internal static class Locations6 40070, 40071, 40072, 40073, 40074, 40075, 40076, 40077, 40078, 40079, }; - internal static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; + public static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; } diff --git a/PKHeX.Core/Game/Locations/Locations7.cs b/PKHeX.Core/Game/Locations/Locations7.cs index ba4ddaf06..66a74cd32 100644 --- a/PKHeX.Core/Game/Locations/Locations7.cs +++ b/PKHeX.Core/Game/Locations/Locations7.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations7 { - internal static ReadOnlySpan Met0 => new byte[] + public static ReadOnlySpan Met0 => new byte[] { 002, 004, 006, 008, 010, 012, 014, 016, 018, @@ -32,13 +32,13 @@ internal static class Locations7 230, 232, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30003, 30004, 30005, 30006, 30007, 30008, 30009, 30010, 30011, 30012, 30013, 30014, 30015, 30016, 30017, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40004, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40015, 40016, 40017, 40018, 40019, @@ -51,5 +51,5 @@ internal static class Locations7 40080, 40081, 40082, 40083, 40084, 40085, 40086, 40087, 40088, }; - internal static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; + public static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; } diff --git a/PKHeX.Core/Game/Locations/Locations7b.cs b/PKHeX.Core/Game/Locations/Locations7b.cs index f65e42488..6d09f2575 100644 --- a/PKHeX.Core/Game/Locations/Locations7b.cs +++ b/PKHeX.Core/Game/Locations/Locations7b.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations7b { - internal static ReadOnlySpan Met0 => new byte[] + public static ReadOnlySpan Met0 => new byte[] { 002, 003, 004, 005, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, @@ -14,13 +14,13 @@ internal static class Locations7b 050, 051, 052, 053, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30003, 30004, 30005, 30006, 30007, 30008, 30009, 30010, 30011, 30012, 30013, 30014, 30015, 30016, 30017, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40004, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40015, 40016, 40017, 40018, 40019, @@ -32,5 +32,5 @@ internal static class Locations7b 40070, 40071, 40072, 40073, 40074, 40075, 40076, 40077, }; - internal static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; + public static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; } diff --git a/PKHeX.Core/Game/Locations/Locations8.cs b/PKHeX.Core/Game/Locations/Locations8.cs index 1a63049e1..c55cdbdd5 100644 --- a/PKHeX.Core/Game/Locations/Locations8.cs +++ b/PKHeX.Core/Game/Locations/Locations8.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations8 { - internal static ReadOnlySpan Met0 => new byte[] + public static ReadOnlySpan Met0 => new byte[] { 002, 004, 006, 008, 012, 014, 016, 018, @@ -33,13 +33,13 @@ internal static class Locations8 240, 242, 244, 246, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30003, 30004, 30005, 30006, 30007, 30008, 30009, 30010, 30011, 30012, 30013, 30014, 30015, 30016, 30017, 30018, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40016, 40017, 40018, 40019, @@ -52,5 +52,5 @@ internal static class Locations8 40080, 40081, 40082, 40083, 40084, 40085, 40086, }; - internal static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; + public static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; } diff --git a/PKHeX.Core/Game/Locations/Locations8a.cs b/PKHeX.Core/Game/Locations/Locations8a.cs index 129c5b09d..8214f89f3 100644 --- a/PKHeX.Core/Game/Locations/Locations8a.cs +++ b/PKHeX.Core/Game/Locations/Locations8a.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations8a { - internal static ReadOnlySpan Met0 => new byte[] + public static ReadOnlySpan Met0 => new byte[] { 000, 002, 004, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, @@ -24,14 +24,14 @@ internal static class Locations8a 150, 151, 152, 153, 154, 155, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30002, 30003, 30004, 30005, 30006, 30007, 30008, 30009, 30010, 30011, 30012, 30013, 30014, 30015, 30016, 30017, 30018, 30019, 30020, 30021, 30022, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40016, 40017, 40018, 40019, @@ -44,5 +44,5 @@ internal static class Locations8a 40080, 40081, 40082, 40083, 40084, 40085, 40086, }; - internal static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; + public static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; } diff --git a/PKHeX.Core/Game/Locations/Locations8b.cs b/PKHeX.Core/Game/Locations/Locations8b.cs index 54844a16f..91e1e67a4 100644 --- a/PKHeX.Core/Game/Locations/Locations8b.cs +++ b/PKHeX.Core/Game/Locations/Locations8b.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations8b { - internal static ReadOnlySpan Met0 => new ushort[] + public static ReadOnlySpan Met0 => new ushort[] { 000, 001, 002, 003, 004, 005, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, @@ -76,14 +76,14 @@ internal static class Locations8b 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30003, 30004, 30005, 30006, 30007, 30009, 30010, 30011, 30012, 30013, 30014, 30015, 30016, 30017, 30018, 30019, 30020, 30022, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40016, 40017, 40018, 40019, @@ -95,5 +95,5 @@ internal static class Locations8b 40070, 40071, 40072, 40074, 40075, 40076, 40077, }; - internal static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004, /* BDSP */ 60005, 60006, 60007, 60010 }; + public static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004, /* BDSP */ 60005, 60006, 60007, 60010 }; } diff --git a/PKHeX.Core/Game/Locations/Locations9.cs b/PKHeX.Core/Game/Locations/Locations9.cs index 993db7929..4a2aa836c 100644 --- a/PKHeX.Core/Game/Locations/Locations9.cs +++ b/PKHeX.Core/Game/Locations/Locations9.cs @@ -4,7 +4,7 @@ namespace PKHeX.Core; internal static class Locations9 { - internal static ReadOnlySpan Met0 => new byte[] + public static ReadOnlySpan Met0 => new byte[] { 002, 004, 006, 008, 010, 012, 014, 016, 018, @@ -26,14 +26,14 @@ internal static class Locations9 130, 131, }; - internal static ReadOnlySpan Met3 => new ushort[] + public static ReadOnlySpan Met3 => new ushort[] { 30001, 30003, 30004, 30005, 30006, 30007, 30008, 30009, 30010, 30011, 30012, 30013, 30014, 30015, 30016, 30017, 30018, 30019, 30020, 30021, 30022, 30023, 30024, }; - internal static ReadOnlySpan Met4 => new ushort[] + public static ReadOnlySpan Met4 => new ushort[] { 40001, 40002, 40003, 40004, 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40015, 40016, 40017, 40018, 40019, @@ -45,5 +45,5 @@ internal static class Locations9 40070, 40071, 40072, 40073, 40074, 40075, 40076, 40077, 40078, }; - internal static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; + public static ReadOnlySpan Met6 => new ushort[] {/* XY */ 60001, 60003, /* ORAS */ 60004 }; }