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