Show / Hide Table of Contents

Class InfiniteHealthModifier

When added to an EntityHealth component, will cause the health to increase infinitely

Inheritance
object
InfiniteHealthModifier
Implements
IHealthModifier
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public class InfiniteHealthModifier : IHealthModifier

Properties

| Edit this page View Source

Priority

The priority of the health modifier. The lower the value, the sooner this modifier will get run before others

Declaration
public int Priority { get; set; }
Property Value
Type Description
int

Methods

| Edit this page View Source

OnHealthChange(int, int)

Called anytime the health in a EntityHealth changes

Declaration
public int OnHealthChange(int oldHealth, int newHealth)
Parameters
Type Name Description
int oldHealth

The previous health value

int newHealth

The new health value

Returns
Type Description
int

Returns a new value to set the health to

Implements

IHealthModifier

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
☀
☾