Skip to content

Commit

Permalink
add access to current announcer
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Jan 29, 2024
1 parent c943351 commit 67b644d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private void OnRoundRestarting(RoundRestartCleanupEvent ev)
/// <summary>
/// Picks a random announcer
/// </summary>
/// <remarks>Probably not very useful for any other system</remarks>
public AnnouncerPrototype PickAnnouncer()
{
return _random.Pick(_prototypeManager.EnumeratePrototypes<AnnouncerPrototype>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public sealed partial class AnnouncerSystem : EntitySystem
/// <summary>
/// The currently selected announcer
/// </summary>
[Access(typeof(AnnouncerSystem))]
public AnnouncerPrototype Announcer { get; set; } = default!;


Expand Down

0 comments on commit 67b644d

Please sign in to comment.