mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
22 lines
643 B
C#
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;
|
|
}
|