You can now recreate modern marketing with VV

Makes AdvertiseComponent wait fields editable through VV
This commit is contained in:
DrSmugleaf
2021-10-01 21:32:02 +02:00
parent c692928792
commit f07bd6b005

View File

@@ -16,7 +16,7 @@ namespace Content.Server.Advertise
/// <summary> /// <summary>
/// Minimum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal to 1. /// Minimum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal to 1.
/// </summary> /// </summary>
[ViewVariables] [ViewVariables(VVAccess.ReadWrite)]
[DataField("minWait")] [DataField("minWait")]
public int MinimumWait { get; } = 8 * 60; public int MinimumWait { get; } = 8 * 60;
@@ -24,7 +24,7 @@ namespace Content.Server.Advertise
/// Maximum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal /// Maximum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal
/// to <see cref="MinimumWait"/> /// to <see cref="MinimumWait"/>
/// </summary> /// </summary>
[ViewVariables] [ViewVariables(VVAccess.ReadWrite)]
[DataField("maxWait")] [DataField("maxWait")]
public int MaximumWait { get; } = 10 * 60; public int MaximumWait { get; } = 10 * 60;
@@ -37,7 +37,7 @@ namespace Content.Server.Advertise
/// <summary> /// <summary>
/// The next time an advertisement will be said. /// The next time an advertisement will be said.
/// </summary> /// </summary>
[ViewVariables] [ViewVariables(VVAccess.ReadWrite)]
public TimeSpan NextAdvertisementTime { get; set; } = TimeSpan.Zero; public TimeSpan NextAdvertisementTime { get; set; } = TimeSpan.Zero;
/// <summary> /// <summary>