Struct HitInfo
Info on how something is hitting something else
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public struct HitInfo
Fields
| Edit this page View SourceAttackStrength
How strong the attack was. Used for enemy recoil
Declaration
public float AttackStrength
Field Value
Type | Description |
---|---|
float |
AttackType
The type of attack that is being done
Declaration
public AttackType AttackType
Field Value
Type | Description |
---|---|
AttackType |
Attacker
The attacker that is initiating the hit
Declaration
public GameObject Attacker
Field Value
Type | Description |
---|---|
GameObject |
Damage
How much damage the attack is doing
Declaration
public int Damage
Field Value
Type | Description |
---|---|
int |
Direction
The direction in degrees the attack is coming from
Declaration
public float Direction
Field Value
Type | Description |
---|---|
float |
IgnoreInvincible
Hits the enemy, even if the enemy is supposed to be invincible
Declaration
public bool IgnoreInvincible
Field Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceGetAttackingPlayer()
Returns the player that is attacking. Returns null if the attacker is not a player
Declaration
public Player GetAttackingPlayer()
Returns
Type | Description |
---|---|
Player |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |