Search Results for

    Show / Hide Table of Contents

    Class FoodLevelChangeEvent

    Dispatched whenever a OpenPlayer's food level changes

    Inheritance
    System.Object
    Event
    PlayerEvent
    FoodLevelChangeEvent
    Inherited Members
    PlayerEvent.Player
    Event.IsCancelled
    Event.SetCancelled(Boolean)
    Namespace: OpenAPI.Events.Player
    Assembly: OpenAPI.dll
    Syntax
    public class FoodLevelChangeEvent : PlayerEvent

    Constructors

    | Improve this Doc View Source

    FoodLevelChangeEvent(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 Source

    NewExhaustion

    The players new exhaustion value

    Declaration
    public double NewExhaustion { get; set; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    NewLevel

    The players new food level

    Declaration
    public int NewLevel { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    NewSaturation

    The players new saturation level

    Declaration
    public double NewSaturation { get; set; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    OldExhaustion

    The players old exhaustion value

    Declaration
    public double OldExhaustion { get; set; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    OldLevel

    The players old food level

    Declaration
    public int OldLevel { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    OldSaturation

    The players old saturation level

    Declaration
    public double OldSaturation { get; set; }
    Property Value
    Type Description
    System.Double
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX