コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TogglingFlashlightEventArgs"/> class.
 /// </summary>
 /// <param name="player"><inheritdoc cref="Player"/></param>
 /// <param name="flashlight"><inheritdoc cref="Flashlight"/></param>
 /// <param name="newState"><inheritdoc cref="NewState"/></param>
 /// <param name="isAllowed"><inheritdoc cref="IsAllowed"/></param>
 public TogglingFlashlightEventArgs(Player player, FlashlightItem flashlight, bool newState, bool isAllowed = true)
 {
     Player     = player;
     Flashlight = (Flashlight)Item.Get(flashlight);
     NewState   = newState;
     IsAllowed  = isAllowed;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Flashlight"/> class.
 /// </summary>
 /// <param name="itemBase">The base <see cref="FlashlightItem"/> class.</param>
 public Flashlight(FlashlightItem itemBase)
     : base(itemBase)
 {
     Base = itemBase;
 }