Skip to content

Commit 8079c01

Browse files
committed
2019
1 parent 464b19c commit 8079c01

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

Editor/Util/TypeMemberUtil.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,37 @@ public MemberInfoContainer(MemberInfo memberInfo)
2121
}
2222
static MemberInfoContainer[] ConstraintCommonMembers(Type type) => new MemberInfoContainer[]
2323
{
24-
new (type.GetProperty(nameof(IConstraint.constraintActive))) { Field = "m_Active" },
25-
new (type.GetProperty(nameof(IConstraint.weight))) { Field = "m_Weight" },
24+
new MemberInfoContainer(type.GetProperty(nameof(IConstraint.constraintActive))) { Field = "m_Active" },
25+
new MemberInfoContainer(type.GetProperty(nameof(IConstraint.weight))) { Field = "m_Weight" },
2626
};
2727
static Dictionary<Type, MemberInfoContainer[]> AvailableMembers = new Dictionary<Type, MemberInfoContainer[]>
2828
{
2929
{
3030
typeof(VRCPhysBone), new MemberInfoContainer[]
3131
{
3232
//new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.integrationType))),
33-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.pull))),
34-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.spring))) { Label ="Spring / Momentum" },
35-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.stiffness))),
36-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.gravity))),
37-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.gravityFalloff))),
33+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.pull))),
34+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.spring))) { Label ="Spring / Momentum" },
35+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.stiffness))),
36+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.gravity))),
37+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.gravityFalloff))),
3838
//new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.immobileType))),
39-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.immobile))),
39+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.immobile))),
4040
// new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.limitType))),
41-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxAngleX))) { Label = "Max Angle / Max Pitch" },
42-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxAngleZ))) { Label = "Max Yaw" },
43-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.limitRotation))) { Label ="Rotation (Pitch / Roll / Yaw)" },
44-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.radius))),
41+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxAngleX))) { Label = "Max Angle / Max Pitch" },
42+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxAngleZ))) { Label = "Max Yaw" },
43+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.limitRotation))) { Label ="Rotation (Pitch / Roll / Yaw)" },
44+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.radius))),
4545
//new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.allowCollision))),
46-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.collisionFilter))),
47-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxStretch))),
48-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.stretchMotion))),
49-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxSquish))),
46+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.collisionFilter))),
47+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxStretch))),
48+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.stretchMotion))),
49+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.maxSquish))),
5050
//new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.allowGrabbing))),
51-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.grabFilter))),
51+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.grabFilter))),
5252
//new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.allowPosing))),
53-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.poseFilter))),
54-
new (typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.snapToHand))),
53+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.poseFilter))),
54+
new MemberInfoContainer(typeof(VRCPhysBone).GetField(nameof(VRCPhysBone.snapToHand))),
5555
}
5656
},
5757
{ typeof(AimConstraint), ConstraintCommonMembers(typeof(AimConstraint)) },

0 commit comments

Comments
 (0)