Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Un.mii
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== nn::mii resemblance ==== * There are "CharModel" and "CharModelImpl" classes, which follow the [[wikipedia:Opaque_pointer|"p_Impl" pattern]] that isn't typical in C#. * There are class members that are prefixed with "m", and argument names prefixed with "p" (pointer). Neither conventions are used in C#. (Look at "Mask") * Since C# is strictly object-oriented, all methods are now in classes. An example is the "Adjustment" class, taken from "mii_Adjustment.cpp". Names like "un.mii.Adjustment.GetEyeRotateOffset()" would've previously been "nn::mii::detail::GetEyeRotateOffset()", as C++ does not force everything to be in classes. * un.mii has many enums for every type, e.g.: EyeType, HairType, EyeScale, Ver3BirthPlatform, etc. These enums are also present in nn::mii, but there they're usually isolated to the "mii_ParamCommon.h" or "detail/mii_Ver3Common.h" headers, whereas here they all live in the un.mii namespace. ** The enums are usually just made up of "Min", "Max", "End", sometimes "Empty", and on occasion other values. * The anonymous namespace of Assembly-CSharp-firstpass.dll contains types from un.mii that are also anonymous in nn::mii. For example: Three "DrawType" enums for faceline/mask/model, DrawTypeImpl also found in nn::mii::detail::CharModelImpl, then types seen in MaskImpl like ExpressionDrawParam, EyeComponent, EyePlaceParam, EyeTexturePair... * Some classes are "accessors" for data used with Get/Set methods, which are copied from nn::mii (e.g.: Ver3StoreDataRaw, ParamCharInfoAccessor), which are kept the same despite C# having property getter/setters that can be used instead. However, the CharInfo class does use properties with getters/setters. * There are also structs/enums from libnn_mii_core that had previously unknown fields. For example: Ver3StoreDataMember/Type, Ver3StoreDataTableElement, CommonColorElement, real names for Mask constants, VerifyReason, Ver3BirthPlatform max being 7, RandomMii tables... This makes it a good resource to reverse nn::mii. Given all of this information, ''un.mii'' seems to be a direct source port of [[nn::mii]] in C# for use with Unity. There are many signs that the C++ code was directly ported without following C#/.NET conventions. There are also, of course, signs that it's only meant to be used with Unity.
Summary:
Please note that all contributions to Mii Technical Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Mii Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Un.mii
(section)
Add topic