Table of Contents

Class CustomGoggles

Namespace
Exiled.CustomItems.API.Features
Assembly
Exiled.CustomItems.dll

The Custom Goggles base class.

public abstract class CustomGoggles : CustomItem
Inheritance
CustomGoggles
Inherited Members
Extension Methods

Properties

CanBeRemoveSafely

Gets or sets a value indicating whether the glasses can be safely removed without bad effects.

public virtual bool CanBeRemoveSafely { get; set; }

Property Value

bool

Remove1344Effect

Gets or sets a value indicating whether the default SCP-1344 effect should be removed when wearing the goggles.

public virtual bool Remove1344Effect { get; set; }

Property Value

bool

RemovingTime

Gets or sets the time, in seconds, required to remove the item.

public virtual float RemovingTime { get; set; }

Property Value

float

Type

Gets or sets the ItemType to use for these goggles. This is locked to ItemType.SCP1344.

public override ItemType Type { get; set; }

Property Value

ItemType

WearingTime

Gets or sets the duration, in seconds, that the item has been worn.

public virtual float WearingTime { get; set; }

Property Value

float

Methods

OnOwnerChangingRole(OwnerChangingRoleEventArgs)

Handles tracking items when they a player changes their role.

protected override void OnOwnerChangingRole(OwnerChangingRoleEventArgs ev)

Parameters

ev OwnerChangingRoleEventArgs

OwnerChangingRoleEventArgs.

OnRemovedGoggles(Player, Scp1344)

Called when the player removes the goggles.

protected virtual void OnRemovedGoggles(Player player, Scp1344 goggles)

Parameters

player Player

The player who removed the goggles.

goggles Scp1344

The Scp1344 item being removed.

OnWornGoggles(Player, Scp1344)

Called when the player equips the goggles.

protected virtual void OnWornGoggles(Player player, Scp1344 goggles)

Parameters

player Player

The player who equipped the goggles.

goggles Scp1344

The Scp1344 item being worn.

SubscribeEvents()

Called after the manager is initialized, to allow loading of special event handlers.

protected override void SubscribeEvents()

UnsubscribeEvents()

Called when the manager is being destroyed, to allow unloading of special event handlers.

protected override void UnsubscribeEvents()