mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* cleanup * Update Content.Shared/Roles/RoleCodeword/SharedRoleCodewordSystem.cs Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> * Apply suggestions from code review --------- Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
11 lines
361 B
C#
11 lines
361 B
C#
namespace Content.Shared.Roles.RoleCodeword;
|
|
|
|
public abstract class SharedRoleCodewordSystem : EntitySystem
|
|
{
|
|
public void SetRoleCodewords(Entity<RoleCodewordComponent> ent, string key, List<string> codewords, Color color)
|
|
{
|
|
var data = new CodewordsData(color, codewords);
|
|
ent.Comp.RoleCodewords[key] = data;
|
|
Dirty(ent);
|
|
}
|
|
}
|