mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
20 lines
674 B
C#
20 lines
674 B
C#
namespace MiraAPI.Events.Vanilla.Player;
|
|
|
|
/// <summary>
|
|
/// The event that is invoked when a player completes a task. Non-cancelable.
|
|
/// </summary>
|
|
/// <param name="player">The player who completed the task.</param>
|
|
/// <param name="task">The task that the player completed.</param>
|
|
public class CompleteTaskEvent(PlayerControl player, PlayerTask task) : MiraEvent
|
|
{
|
|
/// <summary>
|
|
/// Gets the instance of the <see cref="PlayerControl"/>.
|
|
/// </summary>
|
|
public PlayerControl Player => player;
|
|
|
|
/// <summary>
|
|
/// Gets the instance of the <see cref="PlayerTask"/> that the player completed.
|
|
/// </summary>
|
|
public PlayerTask Task => task;
|
|
}
|