Replace ValidatePrototypeId uses with ProtoId or EntProtoId (#38814)
* The easy ones * For certain values of easy * Easy test * Hair * Fix sandbox violations * Sort usings
This commit is contained in:
@@ -15,7 +15,6 @@ namespace Content.Shared.Silicons.Borgs;
|
||||
[Prototype]
|
||||
public sealed partial class BorgTypePrototype : IPrototype
|
||||
{
|
||||
[ValidatePrototypeId<SoundCollectionPrototype>]
|
||||
private static readonly ProtoId<SoundCollectionPrototype> DefaultFootsteps = new("FootstepBorg");
|
||||
|
||||
[IdDataField]
|
||||
|
||||
@@ -21,8 +21,7 @@ public abstract class SharedBorgSwitchableTypeSystem : EntitySystem
|
||||
[Dependency] protected readonly IPrototypeManager Prototypes = default!;
|
||||
[Dependency] private readonly InteractionPopupSystem _interactionPopup = default!;
|
||||
|
||||
[ValidatePrototypeId<EntityPrototype>]
|
||||
public const string ActionId = "ActionSelectBorgType";
|
||||
public static readonly EntProtoId ActionId = "ActionSelectBorgType";
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
@@ -69,7 +69,6 @@ public abstract partial class SharedStationAiSystem : EntitySystem
|
||||
private EntityQuery<BroadphaseComponent> _broadphaseQuery;
|
||||
private EntityQuery<MapGridComponent> _gridQuery;
|
||||
|
||||
[ValidatePrototypeId<EntityPrototype>]
|
||||
private static readonly EntProtoId DefaultAi = "StationAiBrain";
|
||||
|
||||
private const float MaxVisionMultiplier = 5f;
|
||||
|
||||
Reference in New Issue
Block a user