Class PunchingEventArgs
Contains all information before a marshmallow man punches.
public class PunchingEventArgs : IMarshmallowEvent, IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
PunchingEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
PunchingEventArgs(MarshmallowItem, bool)
Initializes a new instance of the PunchingEventArgs class.
public PunchingEventArgs(MarshmallowItem marshmallow, bool isAllowed = true)
Parameters
marshmallowMarshmallowItemThe marshmallow item of the player attacking.
isAllowedboolWhether the player is allowed to punch.
Properties
IsAllowed
Gets or sets a value indicating whether the punch is allowed.
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 punching.
public Marshmallow Marshmallow { get; }
Property Value
Player
Gets the player punching.
public Player Player { get; }