Class MicroHid
A wrapper class for InventorySystem.Items.MicroHID.MicroHIDItem.
public class MicroHid : Item, IWrapper<ItemBase>, IWrapper<MicroHIDItem>- Inheritance
- 
      
      
      
      MicroHid
- Inherited Members
- Extension Methods
Constructors
MicroHid(MicroHIDItem)
Initializes a new instance of the MicroHid class.
public MicroHid(MicroHIDItem itemBase)Parameters
- itemBaseMicroHIDItem
- The base InventorySystem.Items.MicroHID.MicroHIDItem class. 
Properties
Base
Gets the InventorySystem.Items.MicroHID.MicroHIDItem base of the item.
public MicroHIDItem Base { get; }Property Value
- MicroHIDItem
BrokeTime
Gets a time when this MicroHid was broken.
public float BrokeTime { get; }Property Value
BrokenModule
Gets the InventorySystem.Items.MicroHID.Modules.BrokenSyncModule of the MicroHID.
public BrokenSyncModule BrokenModule { get; }Property Value
- BrokenSyncModule
CycleController
Gets the CycleController of the MicroHID.
public CycleController CycleController { get; }Property Value
- CycleController
Energy
Gets or sets the remaining energy in the MicroHID.
public float Energy { get; set; }Property Value
- float
- Maximum energy is - 1. Minimum energy is- 0.
EnergyManager
Gets the InventorySystem.Items.MicroHID.Modules.EnergyManagerModule of the MicroHID.
public EnergyManagerModule EnergyManager { get; }Property Value
- EnergyManagerModule
InputModule
Gets the InventorySystem.Items.MicroHID.Modules.InputSyncModule of the MicroHID.
public InputSyncModule InputModule { get; }Property Value
- InputSyncModule
IsBroken
Gets or sets a value indicating whether the MicroHID is broken.
public bool IsBroken { get; set; }Property Value
IsPrimary
Gets a value indicating whether the LastReceived is InventorySystem.Items.MicroHID.Modules.InputSyncModule.SyncData.Primary.
public bool IsPrimary { get; }Property Value
LastFiringMode
Gets or sets the last received InventorySystem.Items.MicroHID.Modules.MicroHidFiringMode.
public MicroHidFiringMode LastFiringMode { get; set; }Property Value
- MicroHidFiringMode
LastReceived
Gets or sets the last received InventorySystem.Items.MicroHID.Modules.InputSyncModule.SyncData.
public InputSyncModule.SyncData LastReceived { get; set; }Property Value
- InputSyncModule.SyncData
State
Gets or sets the InventorySystem.Items.MicroHID.Modules.MicroHidPhase.
public MicroHidPhase State { get; set; }Property Value
- MicroHidPhase
WindUpProgress
Gets or sets progress of winging up.
public float WindUpProgress { get; set; }Property Value
- float
- A value between - 0and- 1.
Methods
Clone()
Clones current MicroHid object.
public override Item Clone()Returns
Explode()
Explodes the MicroHID.
public void Explode()Fire(MicroHidFiringMode)
Starts firing the MicroHID.
public void Fire(MicroHidFiringMode firingMode = MicroHidFiringMode.PrimaryFire)Parameters
- firingModeMicroHidFiringMode
- Fire mode. 
Recharge()
Recharges the MicroHID.
public void Recharge()ToString()
Returns the MicroHid in a human readable format.
public override string ToString()Returns
- string
- A string containing MicroHid-related data. 
TryGetFireController<T>(MicroHidFiringMode, out T)
Tries to get a InventorySystem.Items.MicroHID.Modules.FiringModeControllerModule assosiated with the specified InventorySystem.Items.MicroHID.Modules.MicroHidFiringMode.
public bool TryGetFireController<T>(MicroHidFiringMode firingMode, out T module) where T : FiringModeControllerModuleParameters
- firingModeMicroHidFiringMode
- Target firing mode. 
- moduleT
- Found module or - null.
Returns
- bool
- trueif module was found,- falseotherwise.
Type Parameters
- T
- Type of module. 
TryGetLastFireController(out FiringModeControllerModule)
Tries to get a InventorySystem.Items.MicroHID.Modules.FiringModeControllerModule assosiated with the last InventorySystem.Items.MicroHID.Modules.MicroHidFiringMode.
public bool TryGetLastFireController(out FiringModeControllerModule module)Parameters
- moduleFiringModeControllerModule
- Found module or - null.
Returns
- bool
- trueif module was found,- falseotherwise.