M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.View.AgentVisuals Class Reference

Inherits TaleWorlds.MountAndBlade.IAgentVisual.

Public Member Functions

MBAgentVisuals GetVisuals ()
 
void Reset ()
 
void ResetNextFrame ()
 
MatrixFrame GetFrame ()
 
BodyProperties GetBodyProperties ()
 
void SetBodyProperties (BodyProperties bodyProperties)
 
bool GetIsFemale ()
 
string GetCharacterObjectID ()
 
void SetCharacterObjectID (string id)
 
Equipment GetEquipment ()
 
AgentVisualsData GetCopyAgentVisualsData ()
 
GameEntity GetEntity ()
 
void SetVisible (bool value)
 
Vec3 GetGlobalStableEyePoint (bool isHumanoid)
 
Vec3 GetGlobalStableNeckPoint (bool isHumanoid)
 
CompositeComponent AddPrefabToAgentVisualBoneByBoneType (string prefabName, HumanBone boneType)
 
CompositeComponent AddPrefabToAgentVisualBoneByRealBoneIndex (string prefabName, sbyte realBoneIndex)
 
void SetAgentLodZeroOrMax (bool value)
 
float GetScale ()
 
void SetAction (ActionIndexCache actionIndex, float startProgress=0.0f, bool forceFaceMorphRestart=true)
 
bool DoesActionContinueWithCurrentAction (ActionIndexCache actionIndex)
 
float GetAnimationParameterAtChannel (int channelIndex)
 
void Refresh (bool needBatchedVersionForWeaponMeshes, AgentVisualsData data, bool forceUseFaceCache=false)
 
void SetClothWindToWeaponAtIndex (Vec3 localWindDirection, bool isLocal, EquipmentIndex weaponIndex)
 
void TickVisuals ()
 
void Tick (AgentVisuals parentAgentVisuals, float dt, bool entityMoving=false, float speed=0.0f)
 
void SetFaceGenerationParams (FaceGenerationParams faceGenerationParams)
 
void SetVoiceDefinitionIndex (int voiceDefinitionIndex, float voicePitch)
 
void StartRhubarbRecord (string path, int soundId)
 Works only for humanoid animation systems.
 
void SetAgentLodZeroOrMaxExternal (bool makeZero)
 
void SetAgentLocalSpeed (Vec2 speed)
 
void SetLookDirection (Vec3 direction)
 
void AddArmorMultiMeshesToAgentEntity (uint teamColor1, uint teamColor2)
 
void MakeRandomVoiceForFacegen ()
 
void SetClothingColors (uint color1, uint color2)
 
void GetClothingColors (out uint color1, out uint color2)
 
void SetEntity (GameEntity entity)
 
void SetAction (ActionIndexCache actionName, float startProgress=0.0f, bool forceFaceMorphRestart=true)
 
MBAgentVisuals GetVisuals ()
 
MatrixFrame GetFrame ()
 
BodyProperties GetBodyProperties ()
 
void SetBodyProperties (BodyProperties bodyProperties)
 
bool GetIsFemale ()
 
string GetCharacterObjectID ()
 
void SetCharacterObjectID (string id)
 
Equipment GetEquipment ()
 
void SetClothingColors (uint color1, uint color2)
 
void GetClothingColors (out uint color1, out uint color2)
 
AgentVisualsData GetCopyAgentVisualsData ()
 
void Refresh (bool needBatchedVersionForWeaponMeshes, AgentVisualsData data, bool forceUseFaceCache=false)
 

Static Public Member Functions

static AgentVisuals Create (AgentVisualsData data, string name, bool isRandomProgress, bool needBatchedVersionForWeaponMeshes, bool forceUseFaceCache)
 
static float GetRandomGlossFactor (Random randomGenerator)
 
static void GetRandomClothingColors (int seed, Color inputColor1, Color inputColor2, out Color color1, out Color color2)
 

Static Public Attributes

const float RandomGlossinessRange = 0.05f
 
const float RandomClothingColor1HueRange = 4
 
const float RandomClothingColor1SaturationRange = 0.2f
 
const float RandomClothingColor1BrightnessRange = 0.2f
 
const float RandomClothingColor2HueRange = 8
 
const float RandomClothingColor2SaturationRange = 0.5f
 
const float RandomClothingColor2BrightnessRange = 0.3f
 

Properties

bool IsFemale [get]
 

Member Function Documentation

◆ GetVisuals()

MBAgentVisuals TaleWorlds.MountAndBlade.View.AgentVisuals.GetVisuals ( )

◆ Reset()

void TaleWorlds.MountAndBlade.View.AgentVisuals.Reset ( )

◆ ResetNextFrame()

void TaleWorlds.MountAndBlade.View.AgentVisuals.ResetNextFrame ( )

◆ GetFrame()

MatrixFrame TaleWorlds.MountAndBlade.View.AgentVisuals.GetFrame ( )

◆ GetBodyProperties()

BodyProperties TaleWorlds.MountAndBlade.View.AgentVisuals.GetBodyProperties ( )

◆ SetBodyProperties()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetBodyProperties ( BodyProperties  bodyProperties)

◆ GetIsFemale()

bool TaleWorlds.MountAndBlade.View.AgentVisuals.GetIsFemale ( )

◆ GetCharacterObjectID()

string TaleWorlds.MountAndBlade.View.AgentVisuals.GetCharacterObjectID ( )

◆ SetCharacterObjectID()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetCharacterObjectID ( string  id)

◆ GetEquipment()

Equipment TaleWorlds.MountAndBlade.View.AgentVisuals.GetEquipment ( )

◆ GetCopyAgentVisualsData()

AgentVisualsData TaleWorlds.MountAndBlade.View.AgentVisuals.GetCopyAgentVisualsData ( )

◆ GetEntity()

GameEntity TaleWorlds.MountAndBlade.View.AgentVisuals.GetEntity ( )

◆ SetVisible()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetVisible ( bool  value)

◆ GetGlobalStableEyePoint()

Vec3 TaleWorlds.MountAndBlade.View.AgentVisuals.GetGlobalStableEyePoint ( bool  isHumanoid)

◆ GetGlobalStableNeckPoint()

Vec3 TaleWorlds.MountAndBlade.View.AgentVisuals.GetGlobalStableNeckPoint ( bool  isHumanoid)

◆ AddPrefabToAgentVisualBoneByBoneType()

CompositeComponent TaleWorlds.MountAndBlade.View.AgentVisuals.AddPrefabToAgentVisualBoneByBoneType ( string  prefabName,
HumanBone  boneType 
)

◆ AddPrefabToAgentVisualBoneByRealBoneIndex()

CompositeComponent TaleWorlds.MountAndBlade.View.AgentVisuals.AddPrefabToAgentVisualBoneByRealBoneIndex ( string  prefabName,
sbyte  realBoneIndex 
)

◆ SetAgentLodZeroOrMax()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetAgentLodZeroOrMax ( bool  value)

◆ GetScale()

float TaleWorlds.MountAndBlade.View.AgentVisuals.GetScale ( )

◆ SetAction()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetAction ( ActionIndexCache  actionIndex,
float  startProgress = 0::0f,
bool  forceFaceMorphRestart = true 
)

◆ DoesActionContinueWithCurrentAction()

bool TaleWorlds.MountAndBlade.View.AgentVisuals.DoesActionContinueWithCurrentAction ( ActionIndexCache  actionIndex)

◆ GetAnimationParameterAtChannel()

float TaleWorlds.MountAndBlade.View.AgentVisuals.GetAnimationParameterAtChannel ( int  channelIndex)

◆ Refresh()

void TaleWorlds.MountAndBlade.View.AgentVisuals.Refresh ( bool  needBatchedVersionForWeaponMeshes,
AgentVisualsData  data,
bool  forceUseFaceCache = false 
)

◆ SetClothWindToWeaponAtIndex()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetClothWindToWeaponAtIndex ( Vec3  localWindDirection,
bool  isLocal,
EquipmentIndex  weaponIndex 
)

◆ TickVisuals()

void TaleWorlds.MountAndBlade.View.AgentVisuals.TickVisuals ( )

◆ Tick()

void TaleWorlds.MountAndBlade.View.AgentVisuals.Tick ( AgentVisuals  parentAgentVisuals,
float  dt,
bool  entityMoving = false,
float  speed = 0::0f 
)

◆ Create()

static AgentVisuals TaleWorlds.MountAndBlade.View.AgentVisuals.Create ( AgentVisualsData  data,
string  name,
bool  isRandomProgress,
bool  needBatchedVersionForWeaponMeshes,
bool  forceUseFaceCache 
)
static

◆ GetRandomGlossFactor()

static float TaleWorlds.MountAndBlade.View.AgentVisuals.GetRandomGlossFactor ( Random  randomGenerator)
static

◆ GetRandomClothingColors()

static void TaleWorlds.MountAndBlade.View.AgentVisuals.GetRandomClothingColors ( int  seed,
Color  inputColor1,
Color  inputColor2,
out Color  color1,
out Color  color2 
)
static

◆ SetFaceGenerationParams()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetFaceGenerationParams ( FaceGenerationParams  faceGenerationParams)

◆ SetVoiceDefinitionIndex()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetVoiceDefinitionIndex ( int  voiceDefinitionIndex,
float  voicePitch 
)

◆ StartRhubarbRecord()

void TaleWorlds.MountAndBlade.View.AgentVisuals.StartRhubarbRecord ( string  path,
int  soundId 
)
Parameters
path
soundId

◆ SetAgentLodZeroOrMaxExternal()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetAgentLodZeroOrMaxExternal ( bool  makeZero)

◆ SetAgentLocalSpeed()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetAgentLocalSpeed ( Vec2  speed)

◆ SetLookDirection()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetLookDirection ( Vec3  direction)

◆ AddArmorMultiMeshesToAgentEntity()

void TaleWorlds.MountAndBlade.View.AgentVisuals.AddArmorMultiMeshesToAgentEntity ( uint  teamColor1,
uint  teamColor2 
)

◆ MakeRandomVoiceForFacegen()

void TaleWorlds.MountAndBlade.View.AgentVisuals.MakeRandomVoiceForFacegen ( )

◆ SetClothingColors()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetClothingColors ( uint  color1,
uint  color2 
)

◆ GetClothingColors()

void TaleWorlds.MountAndBlade.View.AgentVisuals.GetClothingColors ( out uint  color1,
out uint  color2 
)

◆ SetEntity()

void TaleWorlds.MountAndBlade.View.AgentVisuals.SetEntity ( GameEntity  entity)

Member Data Documentation

◆ RandomGlossinessRange

const float TaleWorlds.MountAndBlade.View.AgentVisuals.RandomGlossinessRange = 0.05f
static

◆ RandomClothingColor1HueRange

const float TaleWorlds.MountAndBlade.View.AgentVisuals.RandomClothingColor1HueRange = 4
static

◆ RandomClothingColor1SaturationRange

const float TaleWorlds.MountAndBlade.View.AgentVisuals.RandomClothingColor1SaturationRange = 0.2f
static

◆ RandomClothingColor1BrightnessRange

const float TaleWorlds.MountAndBlade.View.AgentVisuals.RandomClothingColor1BrightnessRange = 0.2f
static

◆ RandomClothingColor2HueRange

const float TaleWorlds.MountAndBlade.View.AgentVisuals.RandomClothingColor2HueRange = 8
static

◆ RandomClothingColor2SaturationRange

const float TaleWorlds.MountAndBlade.View.AgentVisuals.RandomClothingColor2SaturationRange = 0.5f
static

◆ RandomClothingColor2BrightnessRange

const float TaleWorlds.MountAndBlade.View.AgentVisuals.RandomClothingColor2BrightnessRange = 0.3f
static

Property Documentation

◆ IsFemale

bool TaleWorlds.MountAndBlade.View.AgentVisuals.IsFemale
get