Table of Contents

Class Radio

Namespace
Exiled.API.Features.Items
Assembly
Exiled.API.dll

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

public class Radio : Item, IWrapper<ItemBase>, IWrapper<RadioItem>
Inheritance
Radio
Implements
IWrapper<ItemBase>
IWrapper<RadioItem>
Inherited Members
Extension Methods

Constructors

Radio(RadioItem)

Initializes a new instance of the Radio class.

public Radio(RadioItem itemBase)

Parameters

itemBase RadioItem

The base InventorySystem.Items.Radio.RadioItem class.

Properties

Base

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

public RadioItem Base { get; }

Property Value

RadioItem

BatteryLevel

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

public byte BatteryLevel { get; set; }

Property Value

byte

IsEnabled

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

public bool IsEnabled { get; set; }

Property Value

bool

Range

Gets or sets the current RadioRange.

public RadioRange Range { get; set; }

Property Value

RadioRange

RangeSettings

Gets or sets the RadioRangeSettings for the current Range.

public RadioRangeSettings RangeSettings { get; set; }

Property Value

RadioRangeSettings

Methods

Clone()

Clones current Radio object.

public override Item Clone()

Returns

Item

New Radio object.

SetRangeSettings(RadioRange, RadioRangeSettings)

Sets the RadioRangeSettings of the given range.

public void SetRangeSettings(RadioRange range, RadioRangeSettings settings)

Parameters

range RadioRange

The RadioRange to modify.

settings RadioRangeSettings

The new settings of the specified range.

ToString()

Returns the Radio in a human readable format.

public override string ToString()

Returns

string

A string containing Radio-related data.