mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
31 lines
834 B
C#
31 lines
834 B
C#
using AmongUs.GameOptions;
|
|
|
|
namespace MiraAPI.Events.Vanilla.Gameplay;
|
|
|
|
/// <summary>
|
|
/// Event that is invoked after a player's role is set. This event is not cancelable.
|
|
/// </summary>
|
|
public class SetRoleEvent : MiraEvent
|
|
{
|
|
/// <summary>
|
|
/// Gets the <see cref="PlayerControl"/> whose role was changed.
|
|
/// </summary>
|
|
public PlayerControl Player { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the role that the player was set to.
|
|
/// </summary>
|
|
public RoleTypes Role { get; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SetRoleEvent"/> class.
|
|
/// </summary>
|
|
/// <param name="player">The player.</param>
|
|
/// <param name="role">The new role.</param>
|
|
public SetRoleEvent(PlayerControl player, RoleTypes role)
|
|
{
|
|
Player = player;
|
|
Role = role;
|
|
}
|
|
}
|