Skip to content

Commit

Permalink
(AI/HS2) Add Hair Mesh support (#124)
Browse files Browse the repository at this point in the history
* (AI/HS2) Add Hair Mesh support

Add sideloader support for Hair Mesh in AI and HS2.
  • Loading branch information
kkykkykky committed Oct 29, 2020
1 parent 16a5365 commit b433d5f
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,30 @@ internal static class StructReference
(obj, value) => { ((ChaFileHair)obj).parts[(int)HairKind.option].id = value; },
(obj) => ((ChaFileHair)obj).parts[(int)HairKind.option].id));

generatedProperties.Add(
new CategoryProperty(CategoryNo.st_hairmeshptn, "HairBackMesh", prefix),
new StructValue<int>(
(obj, value) => { ((ChaFileHair)obj).parts[(int)HairKind.back].meshType = value; },
(obj) => ((ChaFileHair)obj).parts[(int)HairKind.back].meshType));

generatedProperties.Add(
new CategoryProperty(CategoryNo.st_hairmeshptn, "HairFrontMesh", prefix),
new StructValue<int>(
(obj, value) => { ((ChaFileHair)obj).parts[(int)HairKind.front].meshType = value; },
(obj) => ((ChaFileHair)obj).parts[(int)HairKind.front].meshType));

generatedProperties.Add(
new CategoryProperty(CategoryNo.st_hairmeshptn, "HairSideMesh", prefix),
new StructValue<int>(
(obj, value) => { ((ChaFileHair)obj).parts[(int)HairKind.side].meshType = value; },
(obj) => ((ChaFileHair)obj).parts[(int)HairKind.side].meshType));

generatedProperties.Add(
new CategoryProperty(CategoryNo.st_hairmeshptn, "HairOptionMesh", prefix),
new StructValue<int>(
(obj, value) => { ((ChaFileHair)obj).parts[(int)HairKind.option].meshType = value; },
(obj) => ((ChaFileHair)obj).parts[(int)HairKind.option].meshType));

return generatedProperties;
}

Expand Down

0 comments on commit b433d5f

Please sign in to comment.