Mindrole trigger condition (#40323)

* mind role trigger condition

* fix

* nits

---------

Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
This commit is contained in:
slarticodefast
2025-10-11 00:27:14 +02:00
committed by GitHub
parent b5c8ed8356
commit 21460c86b0
5 changed files with 94 additions and 27 deletions

View File

@@ -4,20 +4,20 @@ using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Conditions;
/// <summary>
/// Checks if the user of a trigger satisfies a whitelist and blacklist condition for the triggered entity or the one triggering it.
/// Checks if the user of a trigger satisfies a whitelist and blacklist condition.
/// Cancels the trigger otherwise.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class WhitelistTriggerConditionComponent : BaseTriggerConditionComponent
{
/// <summary>
/// Whitelist for what entites can cause this trigger.
/// Whitelist for what entities can cause this trigger.
/// </summary>
[DataField, AutoNetworkedField]
public EntityWhitelist? UserWhitelist;
/// <summary>
/// Blacklist for what entites can cause this trigger.
/// Blacklist for what entities can cause this trigger.
/// </summary>
[DataField, AutoNetworkedField]
public EntityWhitelist? UserBlacklist;