Search Results for

    Show / Hide Table of Contents

    Class UsingRadioBatteryEventArgs

    Contains all information before radio battery charge is changed.

    Inheritance
    System.Object
    UsingRadioBatteryEventArgs
    Implements
    IPlayerEvent
    IDeniableEvent
    IItemEvent
    IExiledEvent
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.Events.EventArgs.Player
    Assembly: Exiled.Events.dll
    Syntax
    public class UsingRadioBatteryEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    UsingRadioBatteryEventArgs(RadioItem, Player, Single, Boolean)

    Initializes a new instance of the UsingRadioBatteryEventArgs class.

    Declaration
    public UsingRadioBatteryEventArgs(RadioItem radio, Player player, float drain, bool isAllowed = true)
    Parameters
    Type Name Description
    InventorySystem.Items.Radio.RadioItem radio
    Player player
    System.Single drain
    System.Boolean isAllowed

    Properties

    | Improve this Doc View Source

    Drain

    Gets or sets the radio battery drain per second.

    Declaration
    public float Drain { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    IsAllowed

    Gets or sets a value indicating whether the radio battery charge can be changed or not.

    Declaration
    public bool IsAllowed { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Item

    Declaration
    public Item Item { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    Player

    Gets the player who's using the radio.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    Radio

    Gets the Radio which is being used.

    Declaration
    public Radio Radio { get; }
    Property Value
    Type Description
    Radio

    Implements

    IPlayerEvent
    IDeniableEvent
    IItemEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX