miijs 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out.txt ADDED
@@ -0,0 +1,178 @@
1
+ {
2
+ "mouth": {
3
+ "0": 6,
4
+ "1": 1,
5
+ "2": 2,
6
+ "3": 4,
7
+ "4": 5,
8
+ "5": 5,
9
+ "6": 10,
10
+ "7": 0,
11
+ "8": 7,
12
+ "9": 1,
13
+ "10": 8,
14
+ "11": 7,
15
+ "12": 11,
16
+ "13": 11,
17
+ "14": 10,
18
+ "15": 6,
19
+ "16": 9,
20
+ "17": 3,
21
+ "18": 9,
22
+ "19": 2,
23
+ "20": 8,
24
+ "21": 3,
25
+ "22": 4,
26
+ "23": 0
27
+ },
28
+ "eyebrows": {
29
+ "0": 1,
30
+ "1": 3,
31
+ "2": 2,
32
+ "3": 3,
33
+ "4": 11,
34
+ "5": 10,
35
+ "6": 0,
36
+ "7": 6,
37
+ "8": 8,
38
+ "9": 4,
39
+ "10": 1,
40
+ "11": 0,
41
+ "12": 2,
42
+ "13": 7,
43
+ "14": 4,
44
+ "15": 6,
45
+ "16": 10,
46
+ "17": 9,
47
+ "18": 9,
48
+ "19": 5,
49
+ "20": 5,
50
+ "21": 7,
51
+ "22": 8,
52
+ "23": 11
53
+ },
54
+ "eyes": {
55
+ "0": 2,
56
+ "1": 6,
57
+ "2": 0,
58
+ "3": 6,
59
+ "4": 1,
60
+ "5": 0,
61
+ "6": 5,
62
+ "7": 0,
63
+ "8": 3,
64
+ "9": 4,
65
+ "10": 9,
66
+ "11": 1,
67
+ "12": 5,
68
+ "13": 2,
69
+ "14": 10,
70
+ "15": 9,
71
+ "16": 8,
72
+ "17": 5,
73
+ "18": 9,
74
+ "19": 2,
75
+ "20": 11,
76
+ "21": 8,
77
+ "22": 8,
78
+ "23": 6,
79
+ "24": 6,
80
+ "25": 9,
81
+ "26": 7,
82
+ "27": 10,
83
+ "28": 10,
84
+ "29": 5,
85
+ "30": 7,
86
+ "31": 8,
87
+ "32": 3,
88
+ "33": 0,
89
+ "34": 7,
90
+ "35": 11,
91
+ "36": 3,
92
+ "37": 4,
93
+ "38": 2,
94
+ "39": 4,
95
+ "40": 10,
96
+ "41": 1,
97
+ "42": 3,
98
+ "43": 7,
99
+ "44": 1,
100
+ "45": 4,
101
+ "46": 11,
102
+ "47": 11
103
+ },
104
+ "hairs": {
105
+ "0": 11,
106
+ "1": 6,
107
+ "2": 5,
108
+ "3": 1,
109
+ "4": 4,
110
+ "5": 8,
111
+ "6": 4,
112
+ "7": 11,
113
+ "8": 9,
114
+ "9": 3,
115
+ "10": 3,
116
+ "11": 6,
117
+ "12": 0,
118
+ "13": 1,
119
+ "14": 0,
120
+ "15": 10,
121
+ "16": 1,
122
+ "17": 8,
123
+ "18": 4,
124
+ "19": 7,
125
+ "20": 5,
126
+ "21": 10,
127
+ "22": 2,
128
+ "23": 3,
129
+ "24": 9,
130
+ "25": 5,
131
+ "26": 3,
132
+ "27": 10,
133
+ "28": 6,
134
+ "29": 11,
135
+ "30": 9,
136
+ "31": 11,
137
+ "32": 0,
138
+ "33": 0,
139
+ "34": 11,
140
+ "35": 9,
141
+ "36": 6,
142
+ "37": 2,
143
+ "38": 1,
144
+ "39": 4,
145
+ "40": 1,
146
+ "41": 7,
147
+ "42": 2,
148
+ "43": 0,
149
+ "44": 3,
150
+ "45": 6,
151
+ "46": 2,
152
+ "47": 1,
153
+ "48": 3,
154
+ "49": 7,
155
+ "50": 7,
156
+ "51": 2,
157
+ "52": 5,
158
+ "53": 7,
159
+ "54": 5,
160
+ "55": 8,
161
+ "56": 9,
162
+ "57": 10,
163
+ "58": 6,
164
+ "59": 8,
165
+ "60": 10,
166
+ "61": 0,
167
+ "62": 11,
168
+ "63": 7,
169
+ "64": 9,
170
+ "65": 8,
171
+ "66": 4,
172
+ "67": 4,
173
+ "68": 10,
174
+ "69": 2,
175
+ "70": 5,
176
+ "71": 8
177
+ }
178
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "miijs",
3
- "version": "2.0.1",
4
- "description": "Read, Edit, Write, and make Special Miis from a Wiimote binary file or 3DS QR Code to a binary file or QR code",
3
+ "version": "2.1.0",
4
+ "description": "Work with Mii characters in every possible way needed for your project.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "jest"
@@ -26,6 +26,7 @@
26
26
  "homepage": "https://github.com/KestronProgramming/MiiJS#readme",
27
27
  "dependencies": {
28
28
  "canvas": "^3.1.0",
29
+ "ffl.js": "github:ariankordi/FFL.js#4f83ae2",
29
30
  "gl": "^8.1.6",
30
31
  "https": "^1.0.0",
31
32
  "jimp": "0.22.12",
@@ -33,6 +34,9 @@
33
34
  "jsqr": "^1.4.0",
34
35
  "path": "^0.12.7",
35
36
  "qr-code-styling": "^1.9.2",
36
- "three": "0.138.3"
37
+ "three": "^0.162.0"
38
+ },
39
+ "devDependencies": {
40
+ "jest": "^30.0.1"
37
41
  }
38
42
  }
package/stuff.js ADDED
@@ -0,0 +1,208 @@
1
+ var types={
2
+ mouth: {
3
+ '0': '113',
4
+ '1': '121',
5
+ '2': '131',
6
+ '3': '122',
7
+ '4': '132',
8
+ '5': '132',
9
+ '6': '124',
10
+ '7': '111',
11
+ '8': '123',
12
+ '9': '121',
13
+ '10': '133',
14
+ '11': '123',
15
+ '12': '134',
16
+ '13': '134',
17
+ '14': '124',
18
+ '15': '113',
19
+ '16': '114',
20
+ '17': '112',
21
+ '18': '114',
22
+ '19': '131',
23
+ '20': '133',
24
+ '21': '112',
25
+ '22': '122',
26
+ '23': '111'
27
+ },
28
+ eyebrows:{
29
+ '0': '121',
30
+ '1': '112',
31
+ '2': '231',
32
+ '3': '212',
33
+ '4': '134',
34
+ '5': '124',
35
+ '6': '111',
36
+ '7': '113',
37
+ '8': '133',
38
+ '9': '122',
39
+ '10': '221',
40
+ '11': '211',
41
+ '12': '131',
42
+ '13': '223',
43
+ '14': '222',
44
+ '15': '213',
45
+ '16': '224',
46
+ '17': '114',
47
+ '18': '214',
48
+ '19': '132',
49
+ '20': '232',
50
+ '21': '123',
51
+ '22': '233',
52
+ '23': '234'
53
+ },
54
+ eyes:{
55
+ '0': '131',
56
+ '1': '113',
57
+ '2': '111',
58
+ '3': '413',
59
+ '4': '121',
60
+ '5': '311',
61
+ '6': '332',
62
+ '7': '411',
63
+ '8': '112',
64
+ '9': '222',
65
+ '10': '414',
66
+ '11': '221',
67
+ '12': '232',
68
+ '13': '331',
69
+ '14': '424',
70
+ '15': '114',
71
+ '16': '133',
72
+ '17': '132',
73
+ '18': '314',
74
+ '19': '231',
75
+ '20': '134',
76
+ '21': '233',
77
+ '22': '433',
78
+ '23': '213',
79
+ '24': '313',
80
+ '25': '214',
81
+ '26': '123',
82
+ '27': '124',
83
+ '28': '324',
84
+ '29': '432',
85
+ '30': '323',
86
+ '31': '333',
87
+ '32': '212',
88
+ '33': '211',
89
+ '34': '223',
90
+ '35': '234',
91
+ '36': '312',
92
+ '37': '322',
93
+ '38': '431',
94
+ '39': '122',
95
+ '40': '224',
96
+ '41': '321',
97
+ '42': '412',
98
+ '43': '423',
99
+ '44': '421',
100
+ '45': '422',
101
+ '46': '334',
102
+ '47': '434'
103
+ },
104
+ hairs:{
105
+ '0': '534',
106
+ '1': '413',
107
+ '2': '632',
108
+ '3': '521',
109
+ '4': '422',
110
+ '5': '433',
111
+ '6': '522',
112
+ '7': '434',
113
+ '8': '414',
114
+ '9': '612',
115
+ '10': '512',
116
+ '11': '513',
117
+ '12': '411',
118
+ '13': '421',
119
+ '14': '511',
120
+ '15': '624',
121
+ '16': '621',
122
+ '17': '533',
123
+ '18': '622',
124
+ '19': '423',
125
+ '20': '532',
126
+ '21': '524',
127
+ '22': '531',
128
+ '23': '312',
129
+ '24': '614',
130
+ '25': '432',
131
+ '26': '412',
132
+ '27': '424',
133
+ '28': '613',
134
+ '29': '634',
135
+ '30': '314',
136
+ '31': '134',
137
+ '32': '211',
138
+ '33': '111',
139
+ '34': '334',
140
+ '35': '514',
141
+ '36': '313',
142
+ '37': '231',
143
+ '38': '321',
144
+ '39': '122',
145
+ '40': '121',
146
+ '41': '323',
147
+ '42': '331',
148
+ '43': '311',
149
+ '44': '112',
150
+ '45': '113',
151
+ '46': '631',
152
+ '47': '221',
153
+ '48': '212',
154
+ '49': '123',
155
+ '50': '223',
156
+ '51': '131',
157
+ '52': '232',
158
+ '53': '623',
159
+ '54': '332',
160
+ '55': '233',
161
+ '56': '114',
162
+ '57': '324',
163
+ '58': '213',
164
+ '59': '133',
165
+ '60': '224',
166
+ '61': '611',
167
+ '62': '234',
168
+ '63': '523',
169
+ '64': '214',
170
+ '65': '333',
171
+ '66': '222',
172
+ '67': '322',
173
+ '68': '124',
174
+ '69': '431',
175
+ '70': '132',
176
+ '71': '633'
177
+ }
178
+ };
179
+ var types2={};
180
+ var mappings=[
181
+ 11,21,31,
182
+ 12,22,32,
183
+ 13,23,33,
184
+ 14,24,34];
185
+ Object.keys(types).forEach(key=>{
186
+ types2[key]={};
187
+ Object.keys(types[key]).forEach(num=>{
188
+ types2[key][num]=mappings.indexOf(+(types[key][num].slice(1,3)));
189
+
190
+ });
191
+ });
192
+ require("fs").writeFileSync("./out.txt",JSON.stringify(types2,0,4));
193
+
194
+
195
+ /*
196
+ How it should be
197
+ 0, 1, 2
198
+ 3, 4, 5
199
+ 6, 7, 8
200
+ 9,10,11
201
+
202
+ How it is
203
+ 11,21,31,
204
+ 12,22,32,
205
+ 13,23,33,
206
+ 14,24,34
207
+ */
208
+
package/types.d.ts ADDED
@@ -0,0 +1,156 @@
1
+ // @@@@@@@@@@@@@@@@@@@@@@%*%@##%#%%@@@@%%@@@@@@@@@@@%%%%%%%%%%%%%%%%%###*=-.-#=.:-#%%%####*##%%#*++**===++++++++=====+++++++++*++++===----=======------::..
2
+ // @@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@%%@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@**#%%@@@@@@@@@@@@@@@@@@@@%@@@@@%*++#@@@@@#*++#%@@@@@@##%@@#+*%%%#=-+#@@@@%#==+#%%%###+:
3
+ // @@@@@ @@ @@@ *@%@@@@ .@ :@ @+ :@@@ @@@- *%. %%. *# #@ @% #% *..
4
+ // @@@@@ @ . %@ %@%%%@ .@ % @+ :#+% @%@- #= + @. *# @ @ + -@ +::
5
+ // @@@@@ @@@# -+ #@ @ +%%@@@ .@ . %#@ @%@ %@%#+ .=:# #:*- #- @ @. ##### # @ @ :@ %-:::-
6
+ // @@@@@ ..=* -+ =@ #*#*@@ .@ #+@ @@@ ..@+ .=:# * =: #* +@##%. ..@# @- #%**@ . .*=+
7
+ // @@@@@ * -+ =@ :@@@%%*@ .@ #+@ @@@ @+ .=:# * -: #@@ @%. @# @%# -%@ %#@
8
+ // @@%@@ **%* -+ =@ @ #@@@@@ .@ %=% @@@ =*+%+ .=:# + -: #@@@@= @. =**@# @%@@@. @ ***%%@
9
+ // @@%%@ @@@* -+ =@ @ +@@@@@ .@ = #+@ @@@ **+++ :+:# * -: #= @ @. #%#%% @ @ @ @%%@@@
10
+ // @@@%@ @@@@ -= %@ @ +*###@ .@ @ #+@ @@@ .--=+ -:@ -:=- #* @. @. .--+% # @: @ @ ---@@@
11
+ // @@@%@ @@@@. .@@ @ +%%#%@ .@ %# *+@ @@@ + @ - #@ @. % @ @@ +@ #@@
12
+ // @@@@@++++#@@%%%@#. .*@##@+=++*@++++%@@@@@++++#@++++@@*+++*+-#++++*@@#++++++++*%++++++=%=======+*+++=#%%@* .*@@@#+++++++*@+++#%%++++@%@@= .%@#%++++++++@@@
13
+ // @@@@@%@@@@%%%%%@#%@%##**###.-@@@@@@@@@@@@%%%##%%#*%@%%%%%#+=+@@@@@@@%******#%@%%%@@@%#+=--=-==+++*%#-+#*#%%%%%%%%%%%%%%%%%%%%%%%%%%%##%%#%###%%%#####@@@%#%%@@
14
+ // @@@@@@@@@@#*#%@%#%%###*+%%%=:%@@@@@@@@@@%%%#%%%###+#%%@%#*=+%@@@@@@@%**+*++**%%@@#@%%#*=-:+#@@@%%%%+-+#***##%%%%%%%%%%%%%%%%%%%%%%@@@%%%%%%%%%%%%%%%@@@@@#%%%@
15
+ // @@@@@@@@@@#*#%@%#%%###*+##%#-*@@@@%@@@@%#%%#**#%%%#-+%@%#==%@@@@@@@@%**++++++*####%##*+=:.*@@%@%*%#+=#%#*+*######%%%%%%%%%%%%%%%%%@@%%%%%%%%%%%%%@@@@@@@@#%%@@
16
+ // @@@@@@@@@#%%%%%%@@%#**#*%##%+-#%#=******++#%%%#*#@%#+#@%**%@@@@@@@@%%#***+======+**+*++=-.=+#**+=*+-=%@%#*+*****######%%%%%%%%%%%%@@%%#%%%%%%%%%@@@@@@@@@%%@@@
17
+ // %%@@%%%##*+*#%%%%%##*#%%%###+=%@@#+==+=%%###+*%%%+-==+@##+@@@@@@@%*%%%#***++=======++++=-.:-::::::--+@@@%%+=++***##%%%%%%%%%%%%%%%%%%@%#%%@%@%%@@@@@@@@@@@@@@@
18
+ // @%@@##@%##**%##%%%#**%@%####*+%%*+*.-+=@%%###**#%%######**@@@@@@@%#@%%%***++======+++++-:..:. .:.-#@@@%#*====++*#%%%%########%%@@%%@%##%@@@@@@@@@@@@@@@@@@@@
19
+ // @@%%%#####%%%+#@%%###%%%#**#**##*#**:-+#@@%%%%###%@@@%#+=*@@@@@@@@@@@@%****+++++**#**++=-: :-. .-%@@@@#*-::--=+*######*****###@%%%%%##%@%%%@%%@%@%@@@@@@@@@
20
+ // @@@%%%##%#*#***###%%%#%@@%%@@@%#%@%#+=*#%##%@@@@%####++--#@@@@@@@@@@@@%###****++=++%@@%*+===-*=::::*@@@@@#+:..:-==++***+++===+*###########@@@@%%%@@@@@@@@@@@@@
21
+ // @@@%%##%%%###%@%*#*#%#*%%@@@@%####%%%*##%**%%###%%#*+=:=%@@@@@@@@@@@@@@%###**##*###%@@@%#**=:-*+==+@@@@@##*=-:------====-----==*****##****####%%%%%@@@@@@@@@@@
22
+ // @@@%@@@@@%%#%%%%@%@##%%%%%@@@@@%%*#%@%%%#@@@@@#=:::==+#@@@@@@@@@@@@@@@@@%%%#%%%%@@@@@@%@##%%#+=++#@@@@@##*#+-=--::.::-:--:-::-=++********+**##%%%%%@@@@@%@@%@@
23
+ // @%@%%%%@#%@#%#%%#%#%%#%%@%##*#%####%@@%@@%%%###=+*%@@@@@@@@@@@@@@@@@@%@@@@@%@@@##%%%%%%%##%%%###%@@@@@%%%***=+=----=*+-:--=::+=++***+++++###%%%%%#%%%%%@@@@@@@
24
+ // @@@@@@@@@@%@%@@@%@%@@%@@%%%%#%*@#%@%%##%%%#%*+*%@@@@@#*@@@@@@@@@@@@@@@@@@@@@@@%####*+++==--+*%@@@@@@@@@@%%*++=+*+-=##=:-=+#%*%%**+*##*##+###%*%%@%#%%@@@%@@@@@
25
+ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*%%@@@#%@@@@@@@@@@@@@@@@@@@@@@@@@@@%###%%##***+#@@@@@@@@%@@@%#*#%%%%#%%%@*%@@%@@@#%@@@@@%#@@@%*%#@@#@%@@@@@%@@#%@
26
+ // @@@@@@@@@@@@@@@@@@@@@@@@@@%@%@@@@@#@@@@@@@%#*##@@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@%%#*+**++#@@@@@@@@@@%@@%#%##@@@@%@@@@@@@@@@@@@@@@@%@@@@@@@@@%@@@@@@@@@@@@@@@@
27
+ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#%%%@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*##**#@@@@@@%@%%@%@%%%##%%@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@
28
+ // @@@@@@@@%%%%%%%%%%########################*#**#@#####@@@@@@@@@@@@@%#@@@@@@@@@@@@@@@@%@%##@@@@@@@#@@@@@%%%%*##%%%%%%%%%%%%%%%%%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
29
+ // ************+++++++++++++++++++++++===--=====%% .:-=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*#@@@@@#%%**+=========+++=+++++++++++***##%%@@@@@@@@@@@@@@@@@@
30
+ // ##*#*#####********+++++++++++++++=====--+#%@@@@%= -: ::-+@@@@@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@@%*#%@@@@%%**==--=----==-===-==========++*##%%%@@@@@@@@@@@@@@@@@
31
+ // #*###************+++*****++****++++=*%+:.:.:+#####%@@@@####%*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%**#@@@@%*========-===-==-============+**##%%%%@@@@@@@@@@@@@@@@
32
+ // #*********#***++++++*****+++++++*@@#@#+#%%@@@@*-+##%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%##@@@@#++=====+====+==+=======+++==++***####%%%%%%%%%@@@@@@@@
33
+ // #*#****#******###******+++*++*@@%=@@##=.@@@%%%%@@%=+#%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@%@*===+++++====+===+++++++=++++++++**#**##*####%%%%%%%%%%@
34
+ // #*###%#########***#*#*******#%%%%%@%%%@@#=-::--+#%%@@*+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@%@%@@@@@@*+++=++++++++++++++=+++++++++++++++***+***#*############%%
35
+ // %##########****#####***####@@@@@@@@@@@@@@@@@@%**#%%%@@@%+%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@%@@@@@#===+==++++++++*++++++++++++*++++++++++********###**********
36
+ // #**********#*************#@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*========+===+++**+++==++++*+++++++++++*********************#
37
+ // ==============================================================================================================================================================
38
+ // -------==========-:........#**@@@@@@@@@@@@@@@@@@@@@%#***#######%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@%@@@@@%%%%%%%%%%%%%%##%%%%###########@@@@@@@@@@@@@@@@@@@@@@@@
39
+ // =-------===+++==--:..... -++*@@@@@@@@@@@@@@@@@@@@@@@@@@@%#####%%%%%%%%%%%%%%%%%%%%%%@%%@@@@@@@@@@@@@@@@%%%%%%%%%%%%%#%#########%%%%%%@@@@@@@@@@@@@@@@@%@@@@@
40
+ // =-------==+++===-::...... ..:-*@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%#%%%%%%%%%%%@@%%%%%%%%@@@@@@@@@@@@@@@%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%@@@@%%%@@@@@@@@@@@@@@@@@
41
+ // +======++++++++==-:...:.... ::..*#*#%@@@%%@+@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%@@@@@@@@@@@%%%%%%%%%%%@@@@%%%%%%%%##%%%@@@@@%%%@@@@@@@@@@@@%@@@@
42
+ // +==-==+===+=====--:::::..:. .=.:##*+@@@%%@#@@@@@@@@@@@@@@@@@@@@%@%%%%%%%%%%#%#####*********##%%%%%%@@@@@@%%%@@%@%%%%@@@%%%%%%%%%%%@@@@@@@@%%%@@@@@@@@@@%@@@@@
43
+ // +=---====++++==---:::::::-: :..#%%*:@@%@@%@@@@@@@@@@@@@++*@##@@@%%############****+++====++*####%%%%%%%%%%%%%%@@@@@@@@%%%#%%@%@@@@@@@@@@@%@@@@@@@@@@@@%@@@@@
44
+ // +=------------:---:::--:::. **=@*#@@@@%@@@@@%%%%@@%%@%%%#*+%%%##########***+++==------===++***####%%%%%#%%%%@%%%%@@@%#%@@@@@@@@@@@@@@@@@@@@%@#@@@%%@@@@@@
45
+ // =----------::........... -+*%**@@@@@@@@@@@@@@@@@@@%%@+=%@@#*%########**++==-:.. .::-==++***##%%%%%*%%%%%@@@@@@@%#%%@@@@@@@@@@@@@@@@@%@@@@@@@%%@@@@@%
46
+ // =-------:::::.............. *@#@@%#%@@@@@@@@@@@@@@@@@%%%+==@%%##%+*++++**+++=--:. ..:-==+#####*#*+####@@@@%%%%%%#%@@#@%%@%@@@@@@@@@@@@%@@@%#%*#@@%@
47
+ // ---::-:::::::.......:::......:-=#%@#%####%%%@@@@@@@@@@@@@@%@%++*@##**%##*+==--::. ..:-=++++++++=+****%%@#%%%%%%@@@@%%%@%@@%@@@@@%%%@%##%%%%@@@@%@
48
+ // -:::::::::::.......::...... :#%*#%%%#@##%%%@@%@@@@@@@@@@@%#%%++=-+========++==: .::-==---===-==++*#**#####%#%%%%%%%%%@@%@@@@@@%%@%%%###@##%@@@
49
+ // -:::::::..:...........::. .+#@@%%%%@%@%%#%#%@@@@@@@@@@@%%###==--=::..-.%%@%%*=:. .. :. . : :.:-++*+:-=---=+***%**###%#%%%%@%@@%%%%%%%%#%%%@#%@%%###%%%%#
50
+ // -::::::..............:. -#@@@@%%%@%###%%##%%@@%%%%%%@@%***----=:-*#*=#%@#@+++++++++++===---:-:=--=*#*===*+-=+***#*=*##%%@%@@@@@%%%%##%@@@@@@%###*#%%%@@%*#%
51
+ // -:::::..........:..... :+%@%%%@%#@@%@@#%%#%#%##*##**##*****###%######**##@*#######**+*++**+==++++*##*+#%#*+**+#*%%%%#%%%%#@#@%%@%%%@%##%#%@#%%@%%%#*#%@@@@%
52
+ // -:::::............... .=#%@@@@%@#@%@@%%%@@%#%#%%%%@%%%%%@%@@@%@@%@@@%%#%@@%@%%@%@%%%%##%########*##%#%%#@@#%@%@@%%@@%@@@@@@@@@@@@@@%@#@%@@@@@@@%%%%%%%%@@@@
53
+ // -:..:::............ =%%@@@@%@%@@@@@@%%@@@%@%%@@@@@@@%%%@@@@%@%@@@@@%@%%%%@@%%@%%%%@%#%#%###**+*%%%#%%%@#%%%%@@%@@@@@@@%%@@@@@@@@%@%@@@@@@%%@@@@@@@@@@@@@
54
+ // -:..:::::......... .+*%%%%%%%%%%%##%%%%%%%%%%%%%%%%%@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%####*-.=++=#%%%%*%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
55
+ // -:.::::::......... ...:.:--=-:-:----:--------=++=+++++++++++++=+++=+=++==++++=+======-=-:*%@%%%#=++===+++++++++++++++++++++++++***###%%%%%%%%@@@@%%%@
56
+ // -:::::::::........ ....::--=-=-------------=------=============---===-------------=+===**#%##*+=-=====-=======--===-========++*####%%%%%%%%%%%%%%%
57
+ // -:::::::::....... :::---------=======----=-------------------::------------------::-%@@#%@@@@%%##+:---=----==============++++***####%%%%%%%%%%%%%%%@
58
+ // -::::-:::::...... :-==+==================----------------------:----------------::=%@@@@@@@%@@@+-------------===+++++++++*****######%%%%%%%%#%%%%%%%%
59
+ // -::::-::::... .. .--::-+==++--===-========-==---=-----=-------==----------::--:-@@@@@@@@@@@@@@%-++*=-----=======++++++******#######%#%#%%%%%%%%%%%%%
60
+ // =-::---:::.. ... :===-===+=++======+++======--==++++===+===-==----=+=---:----=%@@@@@@@@@@@@@@@@@#++. --=-----=========+++++******####%#%%%%%%%%%%%%%
61
+ // =--::---:::........ .-=+++===+*++==++==-==+*====++++=-----====+===-------:::--+@@@@@@@@@@@@@@@@@@@@*#%%+:--+------===-===-====+++++***######%%%%%%%%%@@
62
+ // =---------:::::::.. .:-+*========+==+++==++==++++++=++**=---=--=------------*@@@@@@@@@@@@@@@@@@@@%@%%%##::::--=-=++======---====+++***#####%%%%%%%@@@
63
+ // ----:::::--:::::::.. :======+++#*****++****+=====+=---=---------=:-===+%@@@@@@@@@@@@@@@@@@@@@@@#%@@%%%#+:-::-----------==--=-====+++++**###%%%@@@@@@
64
+ // -:--:-::---------::.... .-==++======+**+*+++++==========----::::--=---=+#@@@@@@@@@@@@@@@@@@@@@@%@=-+#@@#-:::::------=+=-----==-======++++**##%%%%##%@
65
+ // =--:::------------:..::.. :+#%#***+++++++++++===== .-----=++=-:-=--=---#@@@@@@@@@@@@@@@@@@%@@@@-::-+#=:-::::----:==-==---========+*++=++++*##%%*##%@
66
+ // +====----==---==---:.:::::. . .-=++++==++++++=========++--=-=+**++=========%@@@@@@@@@@@@@@@@@@@@@@%@@@@#%+----=--===-===-=---=-=-====+++++*++***#%#*###%
67
+ // +++++++==========--:.::---:... .:=-==+==+++++++==+**+-==-=====*++==+====+@@@@@@@@@@@@@@@@@@@@@@@@@@@@#=-==-+===+=====+++=-=====--==-=++++*++++**#%@@@%
68
+ // *++++++++==--===----:::----:::. :===+++**+*+==+++++=====+=++*##**#*+#@@@@@@@@@@@@@@@@@@*%@@@*=====#*++==---===+=+*++====+=====-=-==+=+++***#%@@@@@
69
+ // **++++++++=======----::---==--:.. :==+++==+*#*+++++++##***##**#*==+@@@@@@@@@@@@@@@@@@%@@@@@@=--===+*+++**========+++==++-==++=====++==+**#%@@@@@@
70
+ // ***+++++++=-=====-----:--====--:.... .-==+***++******#%%%#*++++++**+*@@@@@@@@@@@@@@@@@@@@@@@@@%=========++++++==+===++++++++++=======+=++*#%@@@@@@@
71
+ // +++++++*+===-=====----:-=++==--:..... ......... .-****++*##**+*#%%%##**##*#*++*@@@@@@@@@@@@@@@@@@@@@@@@@@#**++=+++++++**++++++=+*++=+=*##+==+===++*#@@@@@@@@@
72
+ // +....: ..-:. . .===-----+++===-:.......:::::::::....-+********%%%###*#####%%%@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@**+*+==+**++*++++++*+==++=+=++++*=+=--=*#%@@@@@@@@@
73
+ // +=++.-==:==-:--======--=*+==+=--::::.:---------::::::-+**#%%%%%%##**##*****+**#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@++++=+++*+++=+#*++*++*++*+*+++++#*++#%%%%@@@@@@@@@
74
+
75
+
76
+ // Wii miis
77
+ export type WiiMii = {
78
+ general: {
79
+ gender: number;
80
+ birthMonth: number;
81
+ birthday: number;
82
+ favoriteColor: number;
83
+ height: number;
84
+ weight: number;
85
+ };
86
+ meta: {
87
+ name: string;
88
+ creatorName: string;
89
+ };
90
+ perms: {
91
+ mingle: boolean;
92
+ fromCheckMiiOut: boolean;
93
+ };
94
+ face: {
95
+ type: number;
96
+ color: number;
97
+ feature: number;
98
+ };
99
+ hair: {
100
+ page: string;
101
+ type: string;
102
+ color: number;
103
+ flipped: boolean;
104
+ };
105
+ eyebrows: {
106
+ page: string;
107
+ type: string;
108
+ rotation: number;
109
+ color: number;
110
+ size: number;
111
+ yPosition: number;
112
+ distanceApart: number;
113
+ };
114
+ eyes: {
115
+ page: string;
116
+ type: string;
117
+ rotation: number;
118
+ yPosition: number;
119
+ color: number;
120
+ size: number;
121
+ distanceApart: number;
122
+ };
123
+ nose: {
124
+ type: string;
125
+ size: number;
126
+ yPosition: number;
127
+ };
128
+ mouth: {
129
+ page: string;
130
+ type: string;
131
+ color: number;
132
+ size: number;
133
+ yPosition: number;
134
+ };
135
+ glasses: {
136
+ type: number;
137
+ color: number;
138
+ size: number;
139
+ yPosition: number;
140
+ };
141
+ beard: {
142
+ mustache: {
143
+ type: number;
144
+ size: number;
145
+ yPosition: number;
146
+ };
147
+ type: number;
148
+ color: number;
149
+ };
150
+ mole: {
151
+ on: boolean;
152
+ size: number;
153
+ yPosition: number;
154
+ xPosition: number;
155
+ };
156
+ };