using System.Numerics; using Robust.Shared.GameStates; namespace Content.Shared.Sprite; /// /// Used to set the datafield to a certain value from the server. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] [Access(typeof(SharedScaleVisualsSystem))] public sealed partial class ScaleVisualsComponent : Component { /// /// The current sprite scale. /// [DataField, AutoNetworkedField] [ViewVariables] public Vector2 Scale = Vector2.One; /// /// The original sprite scale, which we revert to if this component is removed. /// Only set on the client. /// [DataField] [ViewVariables] public Vector2? OriginalScale; }