Delegate StaminaDrainDelegate
A callback used to apply stamina drains for a stamina system
Namespace: NeoFPS
Assembly: NeoFPS.dll
Syntax
public delegate float StaminaDrainDelegate(IStaminaSystem system, float modifiedStamina);
Parameters
| Type | Name | Description |
|---|---|---|
| IStaminaSystem | system | The stamina system the drain is applied to. |
| System.Single | modifiedStamina | The current stamina. This can differ from the |
Returns
| Type | Description |
|---|---|
| System.Single | The amount of stamina to subtract (should take time into account). |