Remove redundant read-only VV from datafields (#12626)
This commit is contained in:
@@ -9,41 +9,37 @@ namespace Content.Server.Holiday
|
||||
[Prototype("holiday")]
|
||||
public sealed class HolidayPrototype : IPrototype
|
||||
{
|
||||
[ViewVariables] [DataField("name")] public string Name { get; private set; } = string.Empty;
|
||||
[DataField("name")] public string Name { get; private set; } = string.Empty;
|
||||
|
||||
[ViewVariables]
|
||||
[IdDataFieldAttribute]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("beginDay")]
|
||||
public byte BeginDay { get; set; } = 1;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("beginMonth")]
|
||||
public Month BeginMonth { get; set; } = Month.Invalid;
|
||||
|
||||
/// <summary>
|
||||
/// Day this holiday will end. Zero means it lasts a single day.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("endDay")]
|
||||
public byte EndDay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Month this holiday will end in. Invalid means it lasts a single month.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("endMonth")]
|
||||
public Month EndMonth { get; set; } = Month.Invalid;
|
||||
|
||||
[ViewVariables] [DataField("shouldCelebrate")]
|
||||
[DataField("shouldCelebrate")]
|
||||
private readonly IHolidayShouldCelebrate _shouldCelebrate = new DefaultHolidayShouldCelebrate();
|
||||
|
||||
[ViewVariables] [DataField("greet")]
|
||||
[DataField("greet")]
|
||||
private readonly IHolidayGreet _greet = new DefaultHolidayGreet();
|
||||
|
||||
[ViewVariables] [DataField("celebrate")]
|
||||
[DataField("celebrate")]
|
||||
private readonly IHolidayCelebrate _celebrate = new DefaultHolidayCelebrate();
|
||||
|
||||
public bool ShouldCelebrate(DateTime date)
|
||||
|
||||
Reference in New Issue
Block a user