* Save round information into the replay * Add round end text too * This is way better * Get actual job * oop * OK THERE * Fake line endings to make life easier * I was told this yaml is legal * I just realised this will make my life easier * REVIEWS BABY IM A PROGRAMMER MOMMY * Live pjb reaction * Live pjb reaction 2 * Reviews 2 * Dont need this * Please no more have mercy on my soul * Oh frick
21 lines
1020 B
C#
21 lines
1020 B
C#
using Content.Shared.Players.PlayTimeTracking;
|
|
|
|
namespace Content.Shared.Roles;
|
|
|
|
/// <summary>
|
|
/// Event raised on a mind entity to get all roles that a player has.
|
|
/// </summary>
|
|
/// <param name="Roles">The list of roles on the player.</param>
|
|
[ByRefEvent]
|
|
public readonly record struct MindGetAllRolesEvent(List<RoleInfo> Roles);
|
|
|
|
/// <summary>
|
|
/// Returned by <see cref="MindGetAllRolesEvent"/> to give some information about a player's role.
|
|
/// </summary>
|
|
/// <param name="Component">Role component associated with the mind entity id.</param>
|
|
/// <param name="Name">Name of the role.</param>
|
|
/// <param name="Antagonist">Whether or not this role makes this player an antagonist.</param>
|
|
/// <param name="PlayTimeTrackerId">The <see cref="PlayTimeTrackerPrototype"/> id associated with the role.</param>
|
|
/// <param name="Prototype">The prototype ID of the role</param>
|
|
public readonly record struct RoleInfo(Component Component, string Name, bool Antagonist, string? PlayTimeTrackerId, string Prototype);
|