Table of Contents

Class RotatingRevolverEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information when a player rotates revolver.

public class RotatingRevolverEventArgs : IFirearmEvent, IItemEvent, IPlayerEvent, IExiledEvent
Inheritance
RotatingRevolverEventArgs
Implements
Inherited Members
Extension Methods

Constructors

RotatingRevolverEventArgs(Firearm, int)

Initializes a new instance of the RotatingRevolverEventArgs class.

public RotatingRevolverEventArgs(Firearm firearm, int rotations)

Parameters

firearm Firearm
rotations int

Properties

Firearm

Gets the Firearm triggering the event.

public Firearm Firearm { get; }

Property Value

Firearm

HasEffect

Gets a value indicating whether the rotation will have an effect.

public bool HasEffect { get; }

Property Value

bool

Remarks

checks rotations and chambers counts equality by mod of chambers counts.

Rotations % Chambers.Length == 0

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player

Rotations

Gets or sets a rotations count(per chamber).

public int Rotations { get; set; }

Property Value

int