]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Replace ProtoId<EntityPrototype> uses with EntProtoId (#29892)
authorTayrtahn <tayrtahn@gmail.com>
Thu, 11 Jul 2024 00:01:30 +0000 (20:01 -0400)
committerGitHub <noreply@github.com>
Thu, 11 Jul 2024 00:01:30 +0000 (02:01 +0200)
Content.Server/Geras/GerasComponent.cs
Content.Shared/Bed/Sleep/SleepingSystem.cs
Content.Shared/Explosion/Components/OnTrigger/SmokeOnTriggerComponent.cs
Content.Shared/PAI/PAIComponent.cs

index eaf792502f4f1d064d0c0416c0221f65e7596873..df1fccd71852af95b3385215f0eb8c6a1e69c174 100644 (file)
@@ -12,7 +12,7 @@ public sealed partial class GerasComponent : Component
 {
     [DataField] public ProtoId<PolymorphPrototype> GerasPolymorphId = "SlimeMorphGeras";
 
-    [DataField] public ProtoId<EntityPrototype> GerasAction = "ActionMorphGeras";
+    [DataField] public EntProtoId GerasAction = "ActionMorphGeras";
 
     [DataField] public EntityUid? GerasActionEntity;
 }
index 581924c053bef439307001987c943c92b037a01b..648d1b40103de3d41b30b4acba29e670f5e52002 100644 (file)
@@ -34,8 +34,8 @@ public sealed partial class SleepingSystem : EntitySystem
     [Dependency] private readonly SharedEmitSoundSystem _emitSound = default!;
     [Dependency] private readonly StatusEffectsSystem _statusEffectsSystem = default!;
 
-    public static readonly ProtoId<EntityPrototype> SleepActionId = "ActionSleep";
-    public static readonly ProtoId<EntityPrototype> WakeActionId = "ActionWake";
+    public static readonly EntProtoId SleepActionId = "ActionSleep";
+    public static readonly EntProtoId WakeActionId = "ActionWake";
 
     public override void Initialize()
     {
index 80d65f4c2cdcee0fa30a69176109bd38b0676cf5..1138e74af8f7659758a1c399d9056ae6109bfe01 100644 (file)
@@ -29,7 +29,7 @@ public sealed partial class SmokeOnTriggerComponent : Component
     /// Defaults to smoke but you can use foam if you want.
     /// </summary>
     [DataField, ViewVariables(VVAccess.ReadWrite)]
-    public ProtoId<EntityPrototype> SmokePrototype = "Smoke";
+    public EntProtoId SmokePrototype = "Smoke";
 
     /// <summary>
     /// Solution to add to each smoke cloud.
index b4e4c92735415ae141a796cdcceb4ab35e9e0c69..9d5be30275883341c314b5171eb20e87f99a2427 100644 (file)
@@ -31,7 +31,7 @@ public sealed partial class PAIComponent : Component
     public EntityUid? MidiAction;
 
     [DataField]
-    public ProtoId<EntityPrototype> MapActionId = "ActionPAIOpenMap";
+    public EntProtoId MapActionId = "ActionPAIOpenMap";
 
     [DataField, AutoNetworkedField]
     public EntityUid? MapAction;