Show / Hide Table of Contents

Struct HitInfo

Info on how something is hitting something else

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public struct HitInfo

Fields

| Edit this page View Source

AttackStrength

How strong the attack was. Used for enemy recoil

Declaration
public float AttackStrength
Field Value
Type Description
float
| Edit this page View Source

AttackType

The type of attack that is being done

Declaration
public AttackType AttackType
Field Value
Type Description
AttackType
| Edit this page View Source

Attacker

The attacker that is initiating the hit

Declaration
public GameObject Attacker
Field Value
Type Description
GameObject
| Edit this page View Source

Damage

How much damage the attack is doing

Declaration
public int Damage
Field Value
Type Description
int
| Edit this page View Source

Direction

The direction in degrees the attack is coming from

Declaration
public float Direction
Field Value
Type Description
float
| Edit this page View Source

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 Source

GetAttackingPlayer()

Returns the player that is attacking. Returns null if the attacker is not a player

Declaration
public Player GetAttackingPlayer()
Returns
Type Description
Player
| Edit this page View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾