Interface IHealthModifier
Used to modify how the health value of an EntityHealth component changes
Namespace: WeaverCore.Interfaces
Assembly: WeaverCore.dll
Syntax
public interface IHealthModifier
Properties
| Edit this page View SourcePriority
The priority of the health modifier. The lower the value, the sooner this modifier will get run before others
Declaration
int Priority { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceOnHealthChange(int, int)
Called anytime the health in a EntityHealth changes
Declaration
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 |