Files
tbd-station-14/Content.Shared/Roles/RoleCodeword/SharedRoleCodewordSystem.cs
slarticodefast a3b82e9afd Cleanup SharedRoleCodewordSystem (#38310)
* 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>
2025-06-27 02:27:25 +02:00

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);
}
}