Struct WfDamagingWeaponDef

ClassList > WfDamagingWeaponDef

Public Attributes

Type Name
enum WfActionAnimation animation
What animation does the damaging weapon use.
union WfDamagingWeaponDef damageCalcData
enum WfDamageCalculationType damageCalculationType
how is the damage calculated;
WfCalculateDamageFn damageCallback
float damageConst
enum WfDamageType damageType
float fanLength
The length of the fan that captures entities to damage.
float fanWidth
The width of the fan that captures entities to damage in radians.
struct WfItemDef * pItemDef
pointer to the item defintion (optional, needed for callback damage type)

Public Attributes Documentation

variable animation

What animation does the damaging weapon use.

enum WfActionAnimation WfDamagingWeaponDef::animation;

variable damageCalcData

union WfDamagingWeaponDef WfDamagingWeaponDef::damageCalcData;

variable damageCalculationType

how is the damage calculated;

enum WfDamageCalculationType WfDamagingWeaponDef::damageCalculationType;

variable damageCallback

WfCalculateDamageFn WfDamagingWeaponDef::damageCallback;

variable damageConst

float WfDamagingWeaponDef::damageConst;

variable damageType

enum WfDamageType WfDamagingWeaponDef::damageType;

variable fanLength

The length of the fan that captures entities to damage.

float WfDamagingWeaponDef::fanLength;

variable fanWidth

The width of the fan that captures entities to damage in radians.

float WfDamagingWeaponDef::fanWidth;

variable pItemDef

pointer to the item defintion (optional, needed for callback damage type)

struct WfItemDef* WfDamagingWeaponDef::pItemDef;


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/include/WfItemHelpers.h