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
ItemObjectweaponClass
WeaponClassweaponFlags
WeaponFlags
Fields
WeaponFlags
public WeaponFlags WeaponFlags
Field Value
Properties
Accuracy
public int Accuracy { get; }
Property Value
AmmoClass
public WeaponClass AmmoClass { get; }
Property Value
AmmoOffset
public Vec3 AmmoOffset { get; }
Property Value
BodyArmor
public int BodyArmor { get; }
Property Value
CanHitMultipleTargets
public bool CanHitMultipleTargets { get; }
Property Value
CenterOfMass
public float CenterOfMass { get; }
Property Value
CenterOfMass3D
public Vec3 CenterOfMass3D { get; }
Property Value
FlyingSoundCode
public string FlyingSoundCode { get; }
Property Value
Frame
public MatrixFrame Frame { get; }
Property Value
Handling
public int Handling { get; }
Property Value
Inertia
public float Inertia { get; }
Property Value
IsAmmo
public bool IsAmmo { get; }
Property Value
IsBow
public bool IsBow { get; }
Property Value
IsConsumable
public bool IsConsumable { get; }
Property Value
IsCrossBow
public bool IsCrossBow { get; }
Property Value
IsMeleeWeapon
public bool IsMeleeWeapon { get; }
Property Value
IsOneHanded
public bool IsOneHanded { get; }
Property Value
IsPolearm
public bool IsPolearm { get; }
Property Value
IsRangedWeapon
public bool IsRangedWeapon { get; }
Property Value
IsShield
public bool IsShield { get; }
Property Value
IsTwoHanded
public bool IsTwoHanded { get; }
Property Value
ItemUsage
public string ItemUsage { get; }
Property Value
MaxDataValue
public short MaxDataValue { get; }
Property Value
MissileDamage
public int MissileDamage { get; }
Property Value
MissileSpeed
public int MissileSpeed { get; }
Property Value
PassbySoundCode
public string PassbySoundCode { get; }
Property Value
PhysicsMaterial
public string PhysicsMaterial { get; }
Property Value
RelevantSkill
public SkillObject RelevantSkill { get; }
Property Value
ReloadPhaseCount
public short ReloadPhaseCount { get; }
Property Value
RotationSpeed
public Vec3 RotationSpeed { get; }
Property Value
StickingFrame
public MatrixFrame StickingFrame { get; }
Property Value
SweetSpotReach
public float SweetSpotReach { get; }
Property Value
SwingDamage
public int SwingDamage { get; }
Property Value
SwingDamageFactor
public float SwingDamageFactor { get; }
Property Value
SwingDamageType
public DamageTypes SwingDamageType { get; }
Property Value
SwingSpeed
public int SwingSpeed { get; }
Property Value
ThrustDamage
public int ThrustDamage { get; }
Property Value
ThrustDamageFactor
public float ThrustDamageFactor { get; }
Property Value
ThrustDamageType
public DamageTypes ThrustDamageType { get; }
Property Value
ThrustSpeed
public int ThrustSpeed { get; }
Property Value
TrailParticleName
public string TrailParticleName { get; }
Property Value
WeaponBalance
public float WeaponBalance { get; }
Property Value
WeaponClass
public WeaponClass WeaponClass { get; }
Property Value
WeaponDescriptionId
public string WeaponDescriptionId { get; }
Property Value
WeaponLength
public int WeaponLength { get; }
Property Value
WeaponTier
public WeaponComponentData.WeaponTiers WeaponTier { get; }
Property Value
Methods
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
Deserialize(ItemObject, XmlNode)
public void Deserialize(ItemObject item, XmlNode node)
Parameters
item
ItemObjectnode
XmlNode
GetItemTypeFromWeaponClass(WeaponClass)
public static ItemObject.ItemTypeEnum GetItemTypeFromWeaponClass(WeaponClass weaponClass)
Parameters
weaponClass
WeaponClass
Returns
GetMissileStartingFrame()
public MatrixFrame GetMissileStartingFrame()
Returns
GetRealWeaponLength()
public float GetRealWeaponLength()
Returns
GetRelevantSkillFromWeaponClass(WeaponClass)
public static SkillObject GetRelevantSkillFromWeaponClass(WeaponClass weaponClass)
Parameters
weaponClass
WeaponClass
Returns
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
stringphysicsMaterial
stringitemUsage
stringthrustDamageType
DamageTypesswingDamageType
DamageTypesbodyArmor
intweaponLength
intweaponBalance
floatinertia
floatcenterOfMass
floathandling
intswingDamageFactor
floatthrustDamageFactor
floatmaxDataValue
shortpassBySoundCode
stringaccuracy
intmissileSpeed
intstickingFrame
MatrixFrameammoClass
WeaponClasssweetSpot
floatswingSpeed
intswingDamage
intthrustSpeed
intthrustDamage
introtationSpeed
Vec3tier
WeaponComponentData.WeaponTiersreloadPhaseCount
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).