﻿using Robust.Shared.Animations;

namespace Content.Shared.Follower.Components;

[RegisterComponent]
public sealed class OrbitVisualsComponent : Component
{
    /// <summary>
    ///     How long should the orbit animation last in seconds, before being randomized?
    /// </summary>
    public float OrbitLength = 2.0f;

    /// <summary>
    ///     How far away from the entity should the orbit be, before being randomized?
    /// </summary>
    public float OrbitDistance = 1.0f;

    /// <summary>
    ///     How long should the orbit stop animation last in seconds?
    /// </summary>
    public float OrbitStopLength = 1.0f;

    /// <summary>
    ///     How far along in the orbit, from 0 to 1, is this entity?
    /// </summary>
    [Animatable]
    public float Orbit { get; set; } = 0.0f;
}

﻿using Robust.Shared.Animations;
using Robust.Shared.GameStates;

namespace Content.Shared.Follower.Components;

[RegisterComponent]
[NetworkedComponent]
public sealed class OrbitVisualsComponent : Component
{
    /// <summary>
    ///     How long should the orbit animation last in seconds, before being randomized?
    /// </summary>
    public float OrbitLength = 2.0f;

    /// <summary>
    ///     How far away from the entity should the orbit be, before being randomized?
    /// </summary>
    public float OrbitDistance = 1.0f;

    /// <summary>
    ///     How long should the orbit stop animation last in seconds?
    /// </summary>
    public float OrbitStopLength = 1.0f;

    /// <summary>
    ///     How far along in the orbit, from 0 to 1, is this entity?
    /// </summary>
    [Animatable]
    public float Orbit { get; set; } = 0.0f;
}

Fix ghost orbit not syncing to other clients
Fix ghost orbit not syncing to other clients

Closes #6797
