@@ -44,15 +44,22 @@ class Platform implements IPlatform
44
44
const OCEANIA = 'oc1 ' ;
45
45
const KOREA = 'kr ' ;
46
46
const JAPAN = 'jp1 ' ;
47
+ const PHILIPPINES = 'ph2 ' ;
48
+ const SINGAPORE = 'sg2 ' ;
49
+ const TAIWAN = 'tw2 ' ;
50
+ const THAILAND = 'th2 ' ;
51
+ const VIETNAM = 'vn2 ' ;
47
52
48
53
const AMERICAS = 'americas ' ;
49
54
const EUROPE = 'europe ' ;
50
55
const ASIA = 'asia ' ;
56
+ const SEA = 'sea ' ;
51
57
52
58
public static $ list = array (
53
59
IRegion::EUROPE => self ::EUROPE ,
54
60
IRegion::AMERICAS => self ::AMERICAS ,
55
61
IRegion::ASIA => self ::ASIA ,
62
+ IRegion::SEA => self ::SEA ,
56
63
Region::NORTH_AMERICA => self ::NORTH_AMERICA ,
57
64
Region::EUROPE_WEST => self ::EUROPE_WEST ,
58
65
Region::EUROPE_EAST => self ::EUROPE_EAST ,
@@ -64,12 +71,18 @@ class Platform implements IPlatform
64
71
Region::OCEANIA => self ::OCEANIA ,
65
72
Region::KOREA => self ::KOREA ,
66
73
Region::JAPAN => self ::JAPAN ,
74
+ Region::PHILIPPINES => self ::PHILIPPINES ,
75
+ Region::SINGAPORE => self ::SINGAPORE ,
76
+ Region::TAIWAN => self ::TAIWAN ,
77
+ Region::THAILAND => self ::THAILAND ,
78
+ Region::VIETNAM => self ::VIETNAM ,
67
79
);
68
80
69
81
public static $ continentalRegions = [
70
82
self ::AMERICAS ,
71
83
self ::EUROPE ,
72
84
self ::ASIA ,
85
+ self ::SEA ,
73
86
];
74
87
75
88
@@ -117,6 +130,13 @@ public function getCorrespondingContinentRegion($region): string
117
130
case Platform::JAPAN :
118
131
return IRegion::ASIA ;
119
132
133
+ case Platform::PHILIPPINES :
134
+ case Platform::SINGAPORE :
135
+ case Platform::TAIWAN :
136
+ case Platform::THAILAND :
137
+ case Platform::VIETNAM :
138
+ return IRegion::SEA ;
139
+
120
140
default :
121
141
throw new GeneralException ("Unable to convert ' $ region' platform ID to corresponding continent region. " );
122
142
}
0 commit comments