// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.DataModel.Configuration; using MUnique.OpenMU.Annotations; /// /// Defines a scheduled transition to a specific at a given day and time. /// [Cloneable] public partial class CastleSiegeStateScheduleEntry { /// /// Gets or sets the siege state that becomes active at the scheduled time. /// public CastleSiegeState State { get; set; } /// /// Gets or sets the day of the week on which this state transition occurs. /// public DayOfWeek DayOfWeek { get; set; } /// /// Gets or sets the hour (0–23) at which this state transition occurs. /// public byte Hour { get; set; } /// /// Gets or sets the minute (0–59) at which this state transition occurs. /// public byte Minute { get; set; } /// public override string ToString() { return $"{this.State} on {this.DayOfWeek} at {this.Hour:D2}:{this.Minute:D2}"; } }