From ee7644c63147f39b9db5a95db78efa001125571e Mon Sep 17 00:00:00 2001 From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:08:56 -0700 Subject: [PATCH] Network WallMountComponent (#30837) --- Content.Shared/Wall/WallMountComponent.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Content.Shared/Wall/WallMountComponent.cs b/Content.Shared/Wall/WallMountComponent.cs index cbd266e3f8..765dd5aff2 100644 --- a/Content.Shared/Wall/WallMountComponent.cs +++ b/Content.Shared/Wall/WallMountComponent.cs @@ -1,3 +1,5 @@ +using Robust.Shared.GameStates; + namespace Content.Shared.Wall; /// @@ -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. /// -[RegisterComponent] +[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class WallMountComponent : Component { /// /// Range of angles for which the exemption applies. Bigger is more permissive. /// [ViewVariables(VVAccess.ReadWrite)] - [DataField("arc")] + [DataField("arc"), AutoNetworkedField] public Angle Arc = new(MathF.PI); /// /// The direction in which the exemption arc is facing, relative to the entity's rotation. Defaults to south. /// [ViewVariables(VVAccess.ReadWrite)] - [DataField("direction")] + [DataField("direction"), AutoNetworkedField] public Angle Direction = Angle.Zero; } -- 2.52.0