Show / Hide Table of Contents

Class ForcePlayerDamager

This component damages the player, even if the player is shadow dashing or desolate diving

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
DamageHero
ForcePlayerDamager
Inherited Members
DamageHero.damageDealt
DamageHero.shadowDashHazard
DamageHero.resetOnEnable
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class ForcePlayerDamager : DamageHero

Properties

| Edit this page View Source

hazardType

Declaration
public HazardType hazardType { get; set; }
Property Value
Type Description
HazardType

Methods

| Edit this page View Source

ForceDamage(HeroController, GameObject, CollisionSide, int, HazardType)

Forces the player to take damage. Ignores shadow dash and desolate dive invincibility

Declaration
public static void ForceDamage(HeroController controller, GameObject source, CollisionSide damageSide, int damageAmount, HazardType hazardType)
Parameters
Type Name Description
HeroController controller

The player to damage

GameObject source

The source of the damage

CollisionSide damageSide

Which direction the damage is coming from

int damageAmount

The amount of damage to deal

HazardType hazardType

The type of damage to deal

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)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾