Table of Contents

Class WeaponComponentData

Namespace
TaleWorlds.Core
Assembly
TaleWorlds.Core.dll
public class WeaponComponentData
Inheritance
WeaponComponentData
Inherited Members
Extension Methods

Constructors

WeaponComponentData(ItemObject, WeaponClass, WeaponFlags)

public WeaponComponentData(ItemObject item, WeaponClass weaponClass = WeaponClass.Undefined, WeaponFlags weaponFlags = (WeaponFlags)0)

Parameters

item ItemObject
weaponClass WeaponClass
weaponFlags WeaponFlags

Fields

WeaponFlags

public WeaponFlags WeaponFlags

Field Value

WeaponFlags

Properties

Accuracy

public int Accuracy { get; }

Property Value

int

AmmoClass

public WeaponClass AmmoClass { get; }

Property Value

WeaponClass

AmmoOffset

public Vec3 AmmoOffset { get; }

Property Value

Vec3

BodyArmor

public int BodyArmor { get; }

Property Value

int

CanHitMultipleTargets

public bool CanHitMultipleTargets { get; }

Property Value

bool

CenterOfMass

public float CenterOfMass { get; }

Property Value

float

CenterOfMass3D

public Vec3 CenterOfMass3D { get; }

Property Value

Vec3

FlyingSoundCode

public string FlyingSoundCode { get; }

Property Value

string

Frame

public MatrixFrame Frame { get; }

Property Value

MatrixFrame

Handling

public int Handling { get; }

Property Value

int

Inertia

public float Inertia { get; }

Property Value

float

IsAmmo

public bool IsAmmo { get; }

Property Value

bool

IsBow

public bool IsBow { get; }

Property Value

bool

IsConsumable

public bool IsConsumable { get; }

Property Value

bool

IsCrossBow

public bool IsCrossBow { get; }

Property Value

bool

IsMeleeWeapon

public bool IsMeleeWeapon { get; }

Property Value

bool

IsOneHanded

public bool IsOneHanded { get; }

Property Value

bool

IsPolearm

public bool IsPolearm { get; }

Property Value

bool

IsRangedWeapon

public bool IsRangedWeapon { get; }

Property Value

bool

IsShield

public bool IsShield { get; }

Property Value

bool

IsTwoHanded

public bool IsTwoHanded { get; }

Property Value

bool

ItemUsage

public string ItemUsage { get; }

Property Value

string

MaxDataValue

public short MaxDataValue { get; }

Property Value

short

MissileDamage

public int MissileDamage { get; }

Property Value

int

MissileSpeed

public int MissileSpeed { get; }

Property Value

int

PassbySoundCode

public string PassbySoundCode { get; }

Property Value

string

PhysicsMaterial

public string PhysicsMaterial { get; }

Property Value

string

RelevantSkill

public SkillObject RelevantSkill { get; }

Property Value

SkillObject

ReloadPhaseCount

public short ReloadPhaseCount { get; }

Property Value

short

RotationSpeed

public Vec3 RotationSpeed { get; }

Property Value

Vec3

StickingFrame

public MatrixFrame StickingFrame { get; }

Property Value

MatrixFrame

SweetSpotReach

public float SweetSpotReach { get; }

Property Value

float

SwingDamage

public int SwingDamage { get; }

Property Value

int

SwingDamageFactor

public float SwingDamageFactor { get; }

Property Value

float

SwingDamageType

public DamageTypes SwingDamageType { get; }

Property Value

DamageTypes

SwingSpeed

public int SwingSpeed { get; }

Property Value

int

ThrustDamage

public int ThrustDamage { get; }

Property Value

int

ThrustDamageFactor

public float ThrustDamageFactor { get; }

Property Value

float

ThrustDamageType

public DamageTypes ThrustDamageType { get; }

Property Value

DamageTypes

ThrustSpeed

public int ThrustSpeed { get; }

Property Value

int

TrailParticleName

public string TrailParticleName { get; }

Property Value

string

WeaponBalance

public float WeaponBalance { get; }

Property Value

float

WeaponClass

public WeaponClass WeaponClass { get; }

Property Value

WeaponClass

WeaponDescriptionId

public string WeaponDescriptionId { get; }

Property Value

string

WeaponLength

public int WeaponLength { get; }

Property Value

int

WeaponTier

public WeaponComponentData.WeaponTiers WeaponTier { get; }

Property Value

WeaponComponentData.WeaponTiers

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

Deserialize(ItemObject, XmlNode)

public void Deserialize(ItemObject item, XmlNode node)

Parameters

item ItemObject
node XmlNode

GetItemTypeFromWeaponClass(WeaponClass)

public static ItemObject.ItemTypeEnum GetItemTypeFromWeaponClass(WeaponClass weaponClass)

Parameters

weaponClass WeaponClass

Returns

ItemObject.ItemTypeEnum

GetMissileStartingFrame()

public MatrixFrame GetMissileStartingFrame()

Returns

MatrixFrame

GetRealWeaponLength()

public float GetRealWeaponLength()

Returns

float

GetRelevantSkillFromWeaponClass(WeaponClass)

public static SkillObject GetRelevantSkillFromWeaponClass(WeaponClass weaponClass)

Parameters

weaponClass WeaponClass

Returns

SkillObject

Init(string, string, string, DamageTypes, DamageTypes, int, int, float, float, float, int, float, float, short, string, int, int, MatrixFrame, WeaponClass, float, int, int, int, int, Vec3, WeaponTiers, short)

public void Init(string weaponUsageName, string physicsMaterial, string itemUsage, DamageTypes thrustDamageType, DamageTypes swingDamageType, int bodyArmor, int weaponLength, float weaponBalance, float inertia, float centerOfMass, int handling, float swingDamageFactor, float thrustDamageFactor, short maxDataValue, string passBySoundCode, int accuracy, int missileSpeed, MatrixFrame stickingFrame, WeaponClass ammoClass, float sweetSpot, int swingSpeed, int swingDamage, int thrustSpeed, int thrustDamage, Vec3 rotationSpeed, WeaponComponentData.WeaponTiers tier, short reloadPhaseCount)

Parameters

weaponUsageName string
physicsMaterial string
itemUsage string
thrustDamageType DamageTypes
swingDamageType DamageTypes
bodyArmor int
weaponLength int
weaponBalance float
inertia float
centerOfMass float
handling int
swingDamageFactor float
thrustDamageFactor float
maxDataValue short
passBySoundCode string
accuracy int
missileSpeed int
stickingFrame MatrixFrame
ammoClass WeaponClass
sweetSpot float
swingSpeed int
swingDamage int
thrustSpeed int
thrustDamage int
rotationSpeed Vec3
tier WeaponComponentData.WeaponTiers
reloadPhaseCount short

SetAmmoOffset(Vec3)

public void SetAmmoOffset(Vec3 ammoOffset)

Parameters

ammoOffset Vec3

SetFrame(MatrixFrame)

public void SetFrame(MatrixFrame frame)

Parameters

frame MatrixFrame

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).