You can now recreate modern marketing with VV
Makes AdvertiseComponent wait fields editable through VV
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user