using Content.Server.Chat.Systems;
using Robust.Shared.Enums;
namespace Content.Server._Sunrise.Chat;
///
/// Makes this entity periodically advertise by speaking a randomly selected
/// message from a specified dataset into local chat.
///
[RegisterComponent, Access(typeof(SayWithIntervalSystem))]
public sealed partial class SayWithIntervalComponent : Component
{
///
/// Minimum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal to 1.
///
[DataField]
public int MinimumWait { get; private set; } = 20;
///
/// Maximum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal
/// to
///
[DataField]
public int MaximumWait { get; private set; } = 40;
///
/// The identifier for the advertisements dataset prototype.
///
[DataField] public string Message = "123";
[DataField] public string chatType = "speak";
[DataField] public bool Format = false;
///
/// The next time an advertisement will be said.
///
[DataField]
public TimeSpan NextMessageTime { get; set; } = TimeSpan.Zero;
}