miijs 2.3.3 → 2.4.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/Enums.js +163 -163
- package/README.md +362 -374
- package/amiiboHandler.js +238 -238
- package/data.json +3240 -0
- package/fflWrapper.js +40 -40
- package/ideal.jsonc +90 -90
- package/index.js +242 -1611
- package/package.json +45 -45
- package/patch-ffl.js +52 -52
- package/types.d.ts +156 -156
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "miijs",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "jest",
|
|
8
|
-
"postinstall": "node ./patch-ffl.js"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/Stewared/MiiJS.git"
|
|
13
|
-
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"Mii",
|
|
16
|
-
"QR",
|
|
17
|
-
"3DS",
|
|
18
|
-
"Wii",
|
|
19
|
-
"Remote",
|
|
20
|
-
"Special"
|
|
21
|
-
],
|
|
22
|
-
"author": "Stewared",
|
|
23
|
-
"license": "ISC",
|
|
24
|
-
"bugs": {
|
|
25
|
-
"url": "https://github.com/Stewared/MiiJS/issues"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/Stewared/MiiJS#readme",
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"canvas": "^3.1.0",
|
|
30
|
-
"ffl.js": "github:ariankordi/FFL.js#06ede8f",
|
|
31
|
-
"gl": "^8.1.6",
|
|
32
|
-
"https": "^1.0.0",
|
|
33
|
-
"jimp": "0.22.12",
|
|
34
|
-
"jsdom": "^26.1.0",
|
|
35
|
-
"jsqr": "^1.4.0",
|
|
36
|
-
"path": "^0.12.7",
|
|
37
|
-
"qr-code-styling": "^1.9.2",
|
|
38
|
-
"require-esm-in-cjs": "^0.1.0",
|
|
39
|
-
"struct-fu": "^1.2.1",
|
|
40
|
-
"three": "^0.162.0"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"jest": "^30.0.1"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "miijs",
|
|
3
|
+
"version": "2.4.0",
|
|
4
|
+
"description": "The most complete and easy to use Mii library on the market.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "jest",
|
|
8
|
+
"postinstall": "node ./patch-ffl.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Stewared/MiiJS.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"Mii",
|
|
16
|
+
"QR",
|
|
17
|
+
"3DS",
|
|
18
|
+
"Wii",
|
|
19
|
+
"Remote",
|
|
20
|
+
"Special"
|
|
21
|
+
],
|
|
22
|
+
"author": "Stewared",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/Stewared/MiiJS/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/Stewared/MiiJS#readme",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"canvas": "^3.1.0",
|
|
30
|
+
"ffl.js": "github:ariankordi/FFL.js#06ede8f",
|
|
31
|
+
"gl": "^8.1.6",
|
|
32
|
+
"https": "^1.0.0",
|
|
33
|
+
"jimp": "0.22.12",
|
|
34
|
+
"jsdom": "^26.1.0",
|
|
35
|
+
"jsqr": "^1.4.0",
|
|
36
|
+
"path": "^0.12.7",
|
|
37
|
+
"qr-code-styling": "^1.9.2",
|
|
38
|
+
"require-esm-in-cjs": "^0.1.0",
|
|
39
|
+
"struct-fu": "^1.2.1",
|
|
40
|
+
"three": "^0.162.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"jest": "^30.0.1"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/patch-ffl.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
var fflPath;
|
|
5
|
-
const fflPaths = [path.join(__dirname, './node_modules/ffl.js/ffl.js'),path.join(__dirname, '../node_modules/ffl.js/ffl.js'),path.join(__dirname, '../../node_modules/ffl.js/ffl.js'),path.join(__dirname, './ffl.js'),path.join(__dirname, '../ffl.js')];
|
|
6
|
-
for(var i=0;i<fflPaths.length;i++){
|
|
7
|
-
if (!fs.existsSync(fflPaths[i])) {
|
|
8
|
-
continue;
|
|
9
|
-
}
|
|
10
|
-
fflPath=fflPaths[i];
|
|
11
|
-
i=fflPaths.length;
|
|
12
|
-
}
|
|
13
|
-
if(fflPath===null||fflPath===undefined){
|
|
14
|
-
console.warn("Couldn't find ffl.js. It still needs to be patched to have CJS exports.");
|
|
15
|
-
process.exit(0);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
let content = fs.readFileSync(fflPath, 'utf8');
|
|
19
|
-
|
|
20
|
-
// Check if already patched
|
|
21
|
-
if (content.includes('// MIIJS_PATCHED')) {
|
|
22
|
-
console.log('ffl.js already patched, skipping.');
|
|
23
|
-
process.exit(0);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
content += `
|
|
27
|
-
// MIIJS_PATCHED - CommonJS exports for Node.js
|
|
28
|
-
if (typeof module !== 'undefined' && module.exports) {
|
|
29
|
-
module.exports = {
|
|
30
|
-
initializeFFL,
|
|
31
|
-
exitFFL,
|
|
32
|
-
createCharModel,
|
|
33
|
-
initCharModelTextures,
|
|
34
|
-
setIsWebGL1State,
|
|
35
|
-
parseHexOrB64ToUint8Array,
|
|
36
|
-
getCameraForViewType,
|
|
37
|
-
ViewType,
|
|
38
|
-
CharModel,
|
|
39
|
-
FFLExpression,
|
|
40
|
-
FFLModelFlag,
|
|
41
|
-
FFLResourceType,
|
|
42
|
-
makeExpressionFlag,
|
|
43
|
-
TextureShaderMaterial,
|
|
44
|
-
convertStudioCharInfoToFFLiCharInfo,
|
|
45
|
-
convertFFLiCharInfoToStudioCharInfo,
|
|
46
|
-
uint8ArrayToBase64
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
50
|
-
content=content.replaceAll("console.debug","//console.debug");
|
|
51
|
-
fs.writeFileSync(fflPath, content, 'utf8');
|
|
52
|
-
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
var fflPath;
|
|
5
|
+
const fflPaths = [path.join(__dirname, './node_modules/ffl.js/ffl.js'),path.join(__dirname, '../node_modules/ffl.js/ffl.js'),path.join(__dirname, '../../node_modules/ffl.js/ffl.js'),path.join(__dirname, './ffl.js'),path.join(__dirname, '../ffl.js')];
|
|
6
|
+
for(var i=0;i<fflPaths.length;i++){
|
|
7
|
+
if (!fs.existsSync(fflPaths[i])) {
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
fflPath=fflPaths[i];
|
|
11
|
+
i=fflPaths.length;
|
|
12
|
+
}
|
|
13
|
+
if(fflPath===null||fflPath===undefined){
|
|
14
|
+
console.warn("Couldn't find ffl.js. It still needs to be patched to have CJS exports.");
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let content = fs.readFileSync(fflPath, 'utf8');
|
|
19
|
+
|
|
20
|
+
// Check if already patched
|
|
21
|
+
if (content.includes('// MIIJS_PATCHED')) {
|
|
22
|
+
console.log('ffl.js already patched, skipping.');
|
|
23
|
+
process.exit(0);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
content += `
|
|
27
|
+
// MIIJS_PATCHED - CommonJS exports for Node.js
|
|
28
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
29
|
+
module.exports = {
|
|
30
|
+
initializeFFL,
|
|
31
|
+
exitFFL,
|
|
32
|
+
createCharModel,
|
|
33
|
+
initCharModelTextures,
|
|
34
|
+
setIsWebGL1State,
|
|
35
|
+
parseHexOrB64ToUint8Array,
|
|
36
|
+
getCameraForViewType,
|
|
37
|
+
ViewType,
|
|
38
|
+
CharModel,
|
|
39
|
+
FFLExpression,
|
|
40
|
+
FFLModelFlag,
|
|
41
|
+
FFLResourceType,
|
|
42
|
+
makeExpressionFlag,
|
|
43
|
+
TextureShaderMaterial,
|
|
44
|
+
convertStudioCharInfoToFFLiCharInfo,
|
|
45
|
+
convertFFLiCharInfoToStudioCharInfo,
|
|
46
|
+
uint8ArrayToBase64
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
content=content.replaceAll("console.debug","//console.debug");
|
|
51
|
+
fs.writeFileSync(fflPath, content, 'utf8');
|
|
52
|
+
|
|
53
53
|
console.log('ffl.js successfully patched.');
|
package/types.d.ts
CHANGED
|
@@ -1,156 +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
|
-
};
|
|
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
|
+
};
|