]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Network WallMountComponent (#30837)
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Sat, 10 Aug 2024 01:08:56 +0000 (18:08 -0700)
committerGitHub <noreply@github.com>
Sat, 10 Aug 2024 01:08:56 +0000 (11:08 +1000)
Content.Shared/Wall/WallMountComponent.cs

index cbd266e3f86acf01f01d6313da6c6b0cd5b050c3..765dd5aff2eaf1c96db39a851e731d4c6626a52b 100644 (file)
@@ -1,3 +1,5 @@
+using Robust.Shared.GameStates;
+
 namespace Content.Shared.Wall;
 
 /// <summary>
@@ -7,20 +9,20 @@ namespace Content.Shared.Wall;
 ///     This will only exempt anchored entities that intersect the wall-mount. Additionally, this exemption will apply
 ///     in a limited arc, providing basic functionality for directional wall mounts.
 /// </remarks>
-[RegisterComponent]
+[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
 public sealed partial class WallMountComponent : Component
 {
     /// <summary>
     ///     Range of angles for which the exemption applies. Bigger is more permissive.
     /// </summary>
     [ViewVariables(VVAccess.ReadWrite)]
-    [DataField("arc")]
+    [DataField("arc"), AutoNetworkedField]
     public Angle Arc = new(MathF.PI);
 
     /// <summary>
     ///     The direction in which the exemption arc is facing, relative to the entity's rotation. Defaults to south.
     /// </summary>
     [ViewVariables(VVAccess.ReadWrite)]
-    [DataField("direction")]
+    [DataField("direction"), AutoNetworkedField]
     public Angle Direction = Angle.Zero;
 }