Class EarningAchievementEventArgs
Contains all information before a player earns an achievement.
public class EarningAchievementEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
EarningAchievementEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
EarningAchievementEventArgs(Player, AchievementName, bool)
Initializes a new instance of the EarningAchievementEventArgs class.
public EarningAchievementEventArgs(Player player, AchievementName achievementName, bool isAllowed = true)
Parameters
Properties
AchievementName
Gets the achievement that will be earned.
public AchievementName AchievementName { get; }
Property Value
- AchievementName
IsAllowed
Gets or sets a value indicating whether the achievement will be awarded to the player.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who earned the achievement.
public Player Player { get; }