Search Results for

    Show / Hide Table of Contents

    Class Radio

    A wrapper class for InventorySystem.Items.Radio.RadioItem.

    Inheritance
    System.Object
    TypeCastObject<Item>
    Item
    Radio
    Implements
    IWrapper<InventorySystem.Items.ItemBase>
    IWrapper<InventorySystem.Items.Radio.RadioItem>
    Inherited Members
    Item.List
    Item.Serial
    Item.IsInInventory
    Item.Scale
    Item.Type
    Item.Category
    Item.TierFlags
    Item.Weight
    Item.IsAmmo
    Item.IsArmor
    Item.IsKeycard
    Item.IsConsumable
    Item.IsThrowable
    Item.IsUsable
    Item.IsWeapon
    Item.IsLightEmitter
    Item.IsDisarmer
    Item.Owner
    Item.Get(ItemBase)
    Item.Get(UInt16)
    Item.Create(ItemType, Player)
    Item.Give(Player)
    Item.Destroy()
    Item.CreatePickup(Vector3, Quaternion, Boolean)
    Item.ChangeItemOwner(Player, Player)
    TypeCastObject<Item>.Cast<TObject>()
    TypeCastObject<Item>.Cast<TObject>(TObject)
    TypeCastObject<Item>.As<TObject>()
    TypeCastObject<Item>.Is<TObject>(TObject)
    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.API.Features.Items
    Assembly: Exiled.API.dll
    Syntax
    public class Radio : Item, IWrapper<ItemBase>, IWrapper<RadioItem>

    Constructors

    | Improve this Doc View Source

    Radio(RadioItem)

    Initializes a new instance of the Radio class.

    Declaration
    public Radio(RadioItem itemBase)
    Parameters
    Type Name Description
    InventorySystem.Items.Radio.RadioItem itemBase

    The base InventorySystem.Items.Radio.RadioItem class.

    Properties

    | Improve this Doc View Source

    Base

    Gets the InventorySystem.Items.Radio.RadioItem that this class is encapsulating.

    Declaration
    public RadioItem Base { get; }
    Property Value
    Type Description
    InventorySystem.Items.Radio.RadioItem
    | Improve this Doc View Source

    BatteryLevel

    Gets or sets the percentage of the radio's battery, between 0-100.

    Declaration
    public byte BatteryLevel { get; set; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    IsEnabled

    Gets or sets a value indicating whether the radio is enabled or not.

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

    Range

    Gets or sets the current RadioRange.

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

    RangeSettings

    Gets or sets the RadioRangeSettings for the current Range.

    Declaration
    public RadioRangeSettings RangeSettings { get; set; }
    Property Value
    Type Description
    RadioRangeSettings

    Methods

    | Improve this Doc View Source

    Clone()

    Clones current Radio object.

    Declaration
    public override Item Clone()
    Returns
    Type Description
    Item

    New Radio object.

    Overrides
    Item.Clone()
    | Improve this Doc View Source

    SetRangeSettings(RadioRange, RadioRangeSettings)

    Sets the RadioRangeSettings of the given range.

    Declaration
    public void SetRangeSettings(RadioRange range, RadioRangeSettings settings)
    Parameters
    Type Name Description
    RadioRange range

    The RadioRange to modify.

    RadioRangeSettings settings

    The new settings of the specified range.

    | Improve this Doc View Source

    ToString()

    Returns the Radio in a human readable format.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string containing Radio-related data.

    Overrides
    Item.ToString()

    Implements

    IWrapper<T>
    IWrapper<T>

    Extension Methods

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