Class CacklingEventArgs
Contains all information before a marshmallow man punches.
public class CacklingEventArgs : IMarshmallowEvent, IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
CacklingEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
CacklingEventArgs(MarshmallowItem, bool)
Initializes a new instance of the CacklingEventArgs class.
public CacklingEventArgs(MarshmallowItem marshmallow, bool isAllowed = true)
Parameters
marshmallowMarshmallowItemThe marshmallow item of the player cackling.
isAllowedboolWhether the player is allowed to cackle.
Properties
IsAllowed
Gets or sets a value indicating whether the player is allowed to cackle.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
Marshmallow
Gets the marshmallow item of the player cackling.
public Marshmallow Marshmallow { get; }
Property Value
Player
Gets the player cackling.
public Player Player { get; }