Class Flashlight
A wrapped class for
Inherited Members
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 Flashlight : Item, IWrapper<ItemBase>, IWrapper<ToggleableLightItemBase>
Constructors
| Improve this Doc View SourceFlashlight(ToggleableLightItemBase)
Initializes a new instance of the Flashlight class.
Declaration
public Flashlight(ToggleableLightItemBase itemBase)
Parameters
Type | Name | Description |
---|---|---|
ToggleableLightItemBase | itemBase | The base |
Properties
| Improve this Doc View SourceActive
Declaration
[Obsolete("Use IsEmittingLight instead.")]
public bool Active { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Base
Gets the
Declaration
public ToggleableLightItemBase Base { get; }
Property Value
Type | Description |
---|---|
ToggleableLightItemBase |
Remarks
Can be
IsEmittingLight
Gets or sets a value indicating whether the item is emitting light.
Declaration
public bool IsEmittingLight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NextAllowedTime
Gets or sets time since level loaded when player will be able to change IsEmittingLight again.
Declaration
public float NextAllowedTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceClone()
Declaration
public override Item Clone()
Returns
Type | Description |
---|---|
Item |
Overrides
| Improve this Doc View SourceToString()
Returns the item in a human readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string containing item-related data. |