Class MBBodyProperties
- Namespace
- TaleWorlds.MountAndBlade
- Assembly
- TaleWorlds.MountAndBlade.dll
public static class MBBodyProperties
- Inheritance
-
MBBodyProperties
- Inherited Members
Methods
EnforceConstraints(ref FaceGenerationParams)
public static bool EnforceConstraints(ref FaceGenerationParams faceGenerationParams)
Parameters
faceGenerationParams
FaceGenerationParams
Returns
GenerateParentKey(BodyProperties, int, ref BodyProperties, ref BodyProperties)
public static void GenerateParentKey(BodyProperties childBodyProperties, int race, ref BodyProperties motherBodyProperties, ref BodyProperties fatherBodyProperties)
Parameters
childBodyProperties
BodyPropertiesrace
intmotherBodyProperties
BodyPropertiesfatherBodyProperties
BodyProperties
GetBodyPropertiesWithAge(ref BodyProperties, float)
public static BodyProperties GetBodyPropertiesWithAge(ref BodyProperties bodyProperties, float age)
Parameters
bodyProperties
BodyPropertiesage
float
Returns
GetDeformKeyData(int, int, int, int)
public static DeformKeyData GetDeformKeyData(int keyNo, int race, int gender, int age)
Parameters
Returns
GetFaceGenInstancesLength(int, int, int)
public static int GetFaceGenInstancesLength(int race, int gender, int age)
Parameters
Returns
GetHairColorCount(int, int, int)
public static int GetHairColorCount(int race, int curGender, int age)
Parameters
Returns
GetHairColorGradientPoints(int, int, int)
public static List<uint> GetHairColorGradientPoints(int race, int curGender, int age)
Parameters
Returns
GetMaturityType(float)
public static BodyMeshMaturityType GetMaturityType(float age)
Parameters
age
float
Returns
GetNumEditableDeformKeys(int, bool, int)
public static int GetNumEditableDeformKeys(int race, bool initialGender, int age)
Parameters
Returns
GetParamsFromKey(ref FaceGenerationParams, BodyProperties, bool, bool)
public static void GetParamsFromKey(ref FaceGenerationParams faceGenerationParams, BodyProperties bodyProperties, bool earsAreHidden, bool mouthHidden)
Parameters
faceGenerationParams
FaceGenerationParamsbodyProperties
BodyPropertiesearsAreHidden
boolmouthHidden
bool
GetParamsMax(int, int, int, ref int, ref int, ref int, ref int, ref int, ref int, ref int, ref float)
public static void GetParamsMax(int race, int curGender, int curAge, ref int hairNum, ref int beardNum, ref int faceTextureNum, ref int mouthTextureNum, ref int faceTattooNum, ref int soundNum, ref int eyebrowNum, ref float scale)
Parameters
race
intcurGender
intcurAge
inthairNum
intbeardNum
intfaceTextureNum
intmouthTextureNum
intfaceTattooNum
intsoundNum
inteyebrowNum
intscale
float
GetRaceIds()
public static string[] GetRaceIds()
Returns
- string[]
GetRandomBodyProperties(int, bool, BodyProperties, BodyProperties, int, int, string, string, string)
public static BodyProperties GetRandomBodyProperties(int race, bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tatooTags)
Parameters
race
intisFemale
boolbodyPropertiesMin
BodyPropertiesbodyPropertiesMax
BodyPropertieshairCoverType
intseed
inthairTags
stringbeardTags
stringtatooTags
string
Returns
GetScaleFromKey(int, int, BodyProperties)
public static float GetScaleFromKey(int race, int gender, BodyProperties bodyProperties)
Parameters
race
intgender
intbodyProperties
BodyProperties
Returns
GetSkinColorCount(int, int, int)
public static int GetSkinColorCount(int race, int curGender, int age)
Parameters
Returns
GetSkinColorGradientPoints(int, int, int)
public static List<uint> GetSkinColorGradientPoints(int race, int curGender, int age)
Parameters
Returns
GetTatooColorCount(int, int, int)
public static int GetTatooColorCount(int race, int curGender, int age)
Parameters
Returns
GetTatooColorGradientPoints(int, int, int)
public static List<uint> GetTatooColorGradientPoints(int race, int curGender, int age)
Parameters
Returns
GetVoiceTypeUsableForPlayerData(int, int, float, int)
public static List<bool> GetVoiceTypeUsableForPlayerData(int race, int curGender, float age, int voiceTypeCount)
Parameters
Returns
GetZeroProbabilities(int, int, float, ref float)
public static void GetZeroProbabilities(int race, int curGender, float curAge, ref float tattooZeroProbability)
Parameters
ProduceNumericKeyWithDefaultValues(ref BodyProperties, bool, bool, int, int, int)
public static void ProduceNumericKeyWithDefaultValues(ref BodyProperties initialBodyProperties, bool earsAreHidden, bool mouthIsHidden, int race, int gender, int age)
Parameters
initialBodyProperties
BodyPropertiesearsAreHidden
boolmouthIsHidden
boolrace
intgender
intage
int
ProduceNumericKeyWithParams(FaceGenerationParams, bool, bool, ref BodyProperties)
public static void ProduceNumericKeyWithParams(FaceGenerationParams faceGenerationParams, bool earsAreHidden, bool mouthIsHidden, ref BodyProperties bodyProperties)
Parameters
faceGenerationParams
FaceGenerationParamsearsAreHidden
boolmouthIsHidden
boolbodyProperties
BodyProperties
SetBody(ref BodyProperties, int, int)
public static void SetBody(ref BodyProperties bodyProperties, int build, int weight)
Parameters
bodyProperties
BodyPropertiesbuild
intweight
int
SetHair(ref BodyProperties, int, int, int)
public static void SetHair(ref BodyProperties bodyProperties, int hair, int beard, int tattoo)
Parameters
bodyProperties
BodyPropertieshair
intbeard
inttattoo
int
SetPigmentation(ref BodyProperties, int, int, int)
public static void SetPigmentation(ref BodyProperties bodyProperties, int skinColor, int hairColor, int eyeColor)
Parameters
bodyProperties
BodyPropertiesskinColor
inthairColor
inteyeColor
int
TransformFaceKeysToDefaultFace(ref FaceGenerationParams)
public static void TransformFaceKeysToDefaultFace(ref FaceGenerationParams faceGenerationParams)
Parameters
faceGenerationParams
FaceGenerationParams
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).