Forbid string literals for SharedActionsSystem methods (#38472)
Forbid string literals for SharedActionsSystem methods
This commit is contained in:
@@ -579,7 +579,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
#region AddRemoveActions
|
||||
|
||||
public EntityUid? AddAction(EntityUid performer,
|
||||
string? actionPrototypeId,
|
||||
[ForbidLiteral] string? actionPrototypeId,
|
||||
EntityUid container = default,
|
||||
ActionsComponent? component = null)
|
||||
{
|
||||
@@ -599,7 +599,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
/// <param name="container">The entity that contains/enables this action (e.g., flashlight).</param>
|
||||
public bool AddAction(EntityUid performer,
|
||||
[NotNullWhen(true)] ref EntityUid? actionId,
|
||||
string? actionPrototypeId,
|
||||
[ForbidLiteral] string? actionPrototypeId,
|
||||
EntityUid container = default,
|
||||
ActionsComponent? component = null)
|
||||
{
|
||||
@@ -610,7 +610,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
public bool AddAction(EntityUid performer,
|
||||
[NotNullWhen(true)] ref EntityUid? actionId,
|
||||
[NotNullWhen(true)] out ActionComponent? action,
|
||||
string? actionPrototypeId,
|
||||
[ForbidLiteral] string? actionPrototypeId,
|
||||
EntityUid container = default,
|
||||
ActionsComponent? component = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user