Class Flashlight
A wrapped class for InventorySystem.Items.ToggleableLights.ToggleableLightItemBase.
public class Flashlight : Item, IWrapper<ItemBase>, IWrapper<ToggleableLightItemBase>
- Inheritance
-
Flashlight
- Inherited Members
- Extension Methods
Constructors
Flashlight(ToggleableLightItemBase)
Initializes a new instance of the Flashlight class.
public Flashlight(ToggleableLightItemBase itemBase)
Parameters
itemBase
ToggleableLightItemBaseThe base InventorySystem.Items.ToggleableLights.ToggleableLightItemBase class.
Properties
Base
Gets the InventorySystem.Items.ToggleableLights.ToggleableLightItemBase that this class is encapsulating.
public ToggleableLightItemBase Base { get; }
Property Value
- ToggleableLightItemBase
Remarks
Can be InventorySystem.Items.ToggleableLights.Flashlight.FlashlightItem or InventorySystem.Items.ToggleableLights.Lantern.LanternItem.
IsEmittingLight
Gets or sets a value indicating whether the item is emitting light.
public bool IsEmittingLight { get; set; }
Property Value
NextAllowedTime
Gets or sets time since level loaded when player will be able to change IsEmittingLight again.
public float NextAllowedTime { get; set; }
Property Value
Methods
Clone()
Clones the current item with a different serial.
public override Item Clone()
Returns
- Item
Cloned item object.
ToString()
Returns the item in a human readable format.
public override string ToString()
Returns
- string
A string containing item-related data.