@@ -12,25 +12,53 @@ public class Mii
1212 public MiiScale Height { get ; set ; } = new ( 1 ) ;
1313 public MiiScale Weight { get ; set ; } = new ( 1 ) ;
1414
15- //Mii ID is also referred as Avatar ID
16- public uint MiiId { get ; set ; }
15+ public bool IsForeign => ( MiiId1 >> 5 ) == 0b110 ; // checks if the top 3 bits are set to 110, if so it got blue pants
16+
17+ //Mii ID is also refered as Avatar ID
18+ public byte MiiId1 { get ; set ; }
19+ public byte MiiId2 { get ; set ; }
20+ public byte MiiId3 { get ; set ; }
21+ public byte MiiId4 { get ; set ; }
22+
23+ public uint MiiId
24+ {
25+ get => ( uint ) ( MiiId1 << 24 | MiiId2 << 16 | MiiId3 << 8 | MiiId4 ) ;
26+ set
27+ {
28+ MiiId1 = ( byte ) ( value >> 24 ) ;
29+ MiiId2 = ( byte ) ( value >> 16 ) ;
30+ MiiId3 = ( byte ) ( value >> 8 ) ;
31+ MiiId4 = ( byte ) ( value ) ;
32+ }
33+ }
1734
1835 //This is also referred as Client ID
1936 public byte SystemId0 { get ; set ; }
2037 public byte SystemId1 { get ; set ; }
2138 public byte SystemId2 { get ; set ; }
2239 public byte SystemId3 { get ; set ; }
2340
41+ public uint SystemId
42+ {
43+ get => ( uint ) ( SystemId0 << 24 | SystemId1 << 16 | SystemId2 << 8 | SystemId3 ) ;
44+ set
45+ {
46+ SystemId0 = ( byte ) ( value >> 24 ) ;
47+ SystemId1 = ( byte ) ( value >> 16 ) ;
48+ SystemId2 = ( byte ) ( value >> 8 ) ;
49+ SystemId3 = ( byte ) ( value ) ;
50+ }
51+ }
52+
2453 public MiiFacialFeatures MiiFacial { get ; set ; } = new ( MiiFaceShape . Bread , MiiSkinColor . Light , MiiFacialFeature . None , false , false ) ;
2554
26- public MiiHair MiiHair { get ; set ; } = new ( 0 , HairColor . Black , false ) ;
27- public MiiEyebrow MiiEyebrows { get ; set ; } = new ( 0 , 0 , EyebrowColor . Black , 1 , 1 , 1 ) ;
28- public MiiEye MiiEyes { get ; set ; } = new ( 0 , 0 , 0 , EyeColor . Black , 0 , 0 ) ;
29- public MiiNose MiiNose { get ; set ; } = new ( NoseType . Default , 0 , 0 ) ;
30- public MiiLip MiiLips { get ; set ; } = new ( 0 , LipColor . Skin , 0 , 0 ) ;
31- public MiiGlasses MiiGlasses { get ; set ; } = new ( GlassesType . None , GlassesColor . Dark , 0 , 0 ) ;
32- public MiiFacialHair MiiFacialHair { get ; set ; } = new ( MustacheType . None , BeardType . None , MustacheColor . Black , 0 , 0 ) ;
55+ public MiiHair MiiHair { get ; set ; } = new ( 1 , HairColor . Black , false ) ;
56+ public MiiEyebrow MiiEyebrows { get ; set ; } = new ( 1 , 0 , EyebrowColor . Black , 4 , 10 , 1 ) ;
57+ public MiiEye MiiEyes { get ; set ; } = new ( 1 , 6 , 7 , EyeColor . Black , 3 , 6 ) ;
58+ public MiiNose MiiNose { get ; set ; } = new ( NoseType . Default , 6 , 4 ) ;
59+ public MiiLip MiiLips { get ; set ; } = new ( 1 , LipColor . Skin , 4 , 9 ) ;
60+ public MiiGlasses MiiGlasses { get ; set ; } = new ( GlassesType . None , GlassesColor . Dark , 4 , 1 ) ;
61+ public MiiFacialHair MiiFacialHair { get ; set ; } = new ( MustacheType . None , BeardType . None , MustacheColor . Black , 1 , 1 ) ;
3362 public MiiMole MiiMole { get ; set ; } = new ( false , 0 , 0 , 0 ) ;
34-
3563 public MiiName CreatorName { get ; set ; } = new ( "no name" ) ;
3664}
0 commit comments