Class FoodLevelChangeEvent
Dispatched whenever a OpenPlayer's food level changes
Namespace: OpenAPI.Events.Player
Assembly: OpenAPI.dll
Syntax
public class FoodLevelChangeEvent : PlayerEvent
Constructors
| Improve this Doc View SourceFoodLevelChangeEvent(OpenPlayer, Int32, Int32, Double, Double, Double, Double)
Declaration
public FoodLevelChangeEvent(OpenPlayer player, int oldLevel, int newLevel, double oldExhaustion, double newExhaustion, double oldSaturation, double newSaturation)
Parameters
Type | Name | Description |
---|---|---|
OpenPlayer | player | |
System.Int32 | oldLevel | |
System.Int32 | newLevel | |
System.Double | oldExhaustion | |
System.Double | newExhaustion | |
System.Double | oldSaturation | |
System.Double | newSaturation |
Properties
| Improve this Doc View SourceNewExhaustion
The players new exhaustion value
Declaration
public double NewExhaustion { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
NewLevel
The players new food level
Declaration
public int NewLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NewSaturation
The players new saturation level
Declaration
public double NewSaturation { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OldExhaustion
The players old exhaustion value
Declaration
public double OldExhaustion { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OldLevel
The players old food level
Declaration
public int OldLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
OldSaturation
The players old saturation level
Declaration
public double OldSaturation { get; set; }
Property Value
Type | Description |
---|---|
System.Double |