Class FixedDamage
Class that represents a specific type of IDamage: FixedDamage. This class uses the base IDamage structure to apply direct damage with fixed value.
Inheritance
System.Object
FixedDamage
Implements
Namespace: CatchIo.Runtime.Damages
Assembly: cs.temp.dll.dll
Syntax
public class FixedDamage : IDamage
Constructors
FixedDamage(Single, DamageSfxType)
Constructor to initialize the FixedDamage object with data. Sets values for damage and SFX type.
Declaration
public FixedDamage(float damage, DamageSfxType sfxType)
Parameters
Type | Name | Description |
---|---|---|
System.Single | damage | The amount of damage that will actually be applied. |
DamageSfxType | sfxType | The SFX type that will be played when the damage is applied. |
Methods
GetDamage()
Declaration
public float GetDamage()
Returns
Type | Description |
---|---|
System.Single |
GetSfxType()
Declaration
public DamageSfxType GetSfxType()
Returns
Type | Description |
---|---|
DamageSfxType |