fish-station/Content.Client/_Sunrise/Animations/ContainerInteraction/ContainerInteractionAnimationVisualsComponent.cs
ThereDrD dd9543db36
Улучшение визуала контейнеров (#3599)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-05 00:28:44 +03:00

28 lines
1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Content.Client._Sunrise.Animations.ContainerInteraction;
/// <summary>
/// Компонент, создающий анимации взаимодействия с контейнерами.
/// Создает анимацию при добавлении и изъятии предмета из контейнера.
/// </summary>
[RegisterComponent]
public sealed partial class ContainerInteractionAnimationVisualsComponent : Component
{
/// <summary>
/// Базовый скейл применяемый к спрайту сущности.
/// </summary>
[DataField]
public float Scale = 1.1f;
/// <summary>
/// Случайный параметр добавляемый к <see cref="Scale"/>.
/// Выбирается в диапозоне [-ЗНАЧЕНИЕ, ЗНАЧЕНИЕ]
/// </summary>
[DataField]
public float ScaleVariation = 0.15f;
/// <summary>
/// Длительность анимации.
/// </summary>
[DataField]
public float Duration = 0.2f;
}