* 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>
12 lines
361 B
C#
12 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);
|
|
}
|
|
}
|