Commit a191dad 1 parent 7bb4def commit a191dad Copy full SHA for a191dad
File tree 1 file changed +31
-0
lines changed
electron/renderer/lib/game
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Map of game codes to their user-friendly game instance labels.
3
+ */
4
+ export const GameCodeLabels : Record < string , string > = {
5
+ DR : 'Prime' ,
6
+ DRX : 'Platinum' ,
7
+ DRF : 'Fallen' ,
8
+ DRT : 'Test' ,
9
+ DRD : 'Development' ,
10
+ } ;
11
+
12
+ /**
13
+ * An array of label-value pairs to power HTML select inputs.
14
+ */
15
+ export const GameCodeSelectOptions : Array < {
16
+ /**
17
+ * User-friendly label for the game instance.
18
+ * Example: 'Prime'
19
+ */
20
+ label : string ;
21
+ /**
22
+ * Game code for the game instance.
23
+ * Example: 'DR'
24
+ */
25
+ value : string ;
26
+ } > = Object . entries ( GameCodeLabels ) . map ( ( [ gameCode , label ] ) => {
27
+ return {
28
+ label,
29
+ value : gameCode ,
30
+ } ;
31
+ } ) ;
You can’t perform that action at this time.
0 commit comments