Table of Contents

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

bool

GenerateParentKey(BodyProperties, int, ref BodyProperties, ref BodyProperties)

public static void GenerateParentKey(BodyProperties childBodyProperties, int race, ref BodyProperties motherBodyProperties, ref BodyProperties fatherBodyProperties)

Parameters

childBodyProperties BodyProperties
race int
motherBodyProperties BodyProperties
fatherBodyProperties BodyProperties

GetBodyPropertiesWithAge(ref BodyProperties, float)

public static BodyProperties GetBodyPropertiesWithAge(ref BodyProperties bodyProperties, float age)

Parameters

bodyProperties BodyProperties
age float

Returns

BodyProperties

GetDeformKeyData(int, int, int, int)

public static DeformKeyData GetDeformKeyData(int keyNo, int race, int gender, int age)

Parameters

keyNo int
race int
gender int
age int

Returns

DeformKeyData

GetFaceGenInstancesLength(int, int, int)

public static int GetFaceGenInstancesLength(int race, int gender, int age)

Parameters

race int
gender int
age int

Returns

int

GetHairColorCount(int, int, int)

public static int GetHairColorCount(int race, int curGender, int age)

Parameters

race int
curGender int
age int

Returns

int

GetHairColorGradientPoints(int, int, int)

public static List<uint> GetHairColorGradientPoints(int race, int curGender, int age)

Parameters

race int
curGender int
age int

Returns

List<uint>

GetMaturityType(float)

public static BodyMeshMaturityType GetMaturityType(float age)

Parameters

age float

Returns

BodyMeshMaturityType

GetNumEditableDeformKeys(int, bool, int)

public static int GetNumEditableDeformKeys(int race, bool initialGender, int age)

Parameters

race int
initialGender bool
age int

Returns

int

GetParamsFromKey(ref FaceGenerationParams, BodyProperties, bool, bool)

public static void GetParamsFromKey(ref FaceGenerationParams faceGenerationParams, BodyProperties bodyProperties, bool earsAreHidden, bool mouthHidden)

Parameters

faceGenerationParams FaceGenerationParams
bodyProperties BodyProperties
earsAreHidden bool
mouthHidden 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 int
curGender int
curAge int
hairNum int
beardNum int
faceTextureNum int
mouthTextureNum int
faceTattooNum int
soundNum int
eyebrowNum int
scale 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 int
isFemale bool
bodyPropertiesMin BodyProperties
bodyPropertiesMax BodyProperties
hairCoverType int
seed int
hairTags string
beardTags string
tatooTags string

Returns

BodyProperties

GetScaleFromKey(int, int, BodyProperties)

public static float GetScaleFromKey(int race, int gender, BodyProperties bodyProperties)

Parameters

race int
gender int
bodyProperties BodyProperties

Returns

float

GetSkinColorCount(int, int, int)

public static int GetSkinColorCount(int race, int curGender, int age)

Parameters

race int
curGender int
age int

Returns

int

GetSkinColorGradientPoints(int, int, int)

public static List<uint> GetSkinColorGradientPoints(int race, int curGender, int age)

Parameters

race int
curGender int
age int

Returns

List<uint>

GetTatooColorCount(int, int, int)

public static int GetTatooColorCount(int race, int curGender, int age)

Parameters

race int
curGender int
age int

Returns

int

GetTatooColorGradientPoints(int, int, int)

public static List<uint> GetTatooColorGradientPoints(int race, int curGender, int age)

Parameters

race int
curGender int
age int

Returns

List<uint>

GetVoiceTypeUsableForPlayerData(int, int, float, int)

public static List<bool> GetVoiceTypeUsableForPlayerData(int race, int curGender, float age, int voiceTypeCount)

Parameters

race int
curGender int
age float
voiceTypeCount int

Returns

List<bool>

GetZeroProbabilities(int, int, float, ref float)

public static void GetZeroProbabilities(int race, int curGender, float curAge, ref float tattooZeroProbability)

Parameters

race int
curGender int
curAge float
tattooZeroProbability float

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 BodyProperties
earsAreHidden bool
mouthIsHidden bool
race int
gender int
age int

ProduceNumericKeyWithParams(FaceGenerationParams, bool, bool, ref BodyProperties)

public static void ProduceNumericKeyWithParams(FaceGenerationParams faceGenerationParams, bool earsAreHidden, bool mouthIsHidden, ref BodyProperties bodyProperties)

Parameters

faceGenerationParams FaceGenerationParams
earsAreHidden bool
mouthIsHidden bool
bodyProperties BodyProperties

SetBody(ref BodyProperties, int, int)

public static void SetBody(ref BodyProperties bodyProperties, int build, int weight)

Parameters

bodyProperties BodyProperties
build int
weight int

SetHair(ref BodyProperties, int, int, int)

public static void SetHair(ref BodyProperties bodyProperties, int hair, int beard, int tattoo)

Parameters

bodyProperties BodyProperties
hair int
beard int
tattoo int

SetPigmentation(ref BodyProperties, int, int, int)

public static void SetPigmentation(ref BodyProperties bodyProperties, int skinColor, int hairColor, int eyeColor)

Parameters

bodyProperties BodyProperties
skinColor int
hairColor int
eyeColor 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).