Files
RobustToolbox/Robust.Shared/Audio/AudioMetadataPrototype.cs
2024-04-21 07:39:54 +10:00

22 lines
643 B
C#

using System;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Robust.Shared.Audio;
/// <summary>
/// Stores server-side metadata about an audio file.
/// These prototypes get automatically generated when packaging the server,
/// to allow the server to know audio lengths without shipping the large audio files themselves.
/// </summary>
[Prototype(ProtoName)]
public sealed partial class AudioMetadataPrototype : IPrototype
{
public const string ProtoName = "audioMetadata";
[IdDataField] public string ID { get; set; } = string.Empty;
[DataField]
public TimeSpan Length;
}