Class Radio
A wrapper class for InventorySystem.Items.Radio.RadioItem.
public class Radio : Item, IWrapper<ItemBase>, IWrapper<RadioItem>- Inheritance
- 
      
      
      
      Radio
- Inherited Members
- Extension Methods
Constructors
Radio(RadioItem)
Initializes a new instance of the Radio class.
public Radio(RadioItem itemBase)Parameters
- itemBaseRadioItem
- 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
IsEnabled
Gets or sets a value indicating whether the radio is enabled.
public bool IsEnabled { get; set; }Property Value
Range
Gets or sets the current RadioRange.
public RadioRange Range { get; set; }Property Value
RangeSettings
Gets or sets the RadioRangeSettings for the current Range.
public RadioRangeSettings RangeSettings { get; set; }Property Value
Methods
Clone()
Clones current Radio object.
public override Item Clone()Returns
SetRangeSettings(RadioRange, RadioRangeSettings)
Sets the RadioRangeSettings of the given range.
public void SetRangeSettings(RadioRange range, RadioRangeSettings settings)Parameters
- rangeRadioRange
- The RadioRange to modify. 
- settingsRadioRangeSettings
- 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.