mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
# Description Increases the text limit for news reports: - Title character limit: 25 -> 50 - Content character limit: 2048 -> 2560 Mostly a personal change for me because I often run into the title character limits when I was playing Reporter. ## Media    ## Changelog 🆑 Skubman - tweak: The news article title character limit has been increased from 25 to 50 characters, and news content from 2048 to 2560 characters. (cherry picked from commit f80f954f817871ada084518e79b1832c0c5db2d9)
35 lines
777 B
C#
35 lines
777 B
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.MassMedia.Systems;
|
|
|
|
public abstract class SharedNewsSystem : EntitySystem
|
|
{
|
|
public const int MaxTitleLength = 50;
|
|
public const int MaxContentLength = 2560;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public struct NewsArticle
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string Title;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string Content;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string? Author;
|
|
|
|
[ViewVariables]
|
|
public ICollection<(NetEntity, uint)>? AuthorStationRecordKeyIds;
|
|
|
|
[ViewVariables]
|
|
public TimeSpan ShareTime;
|
|
}
|
|
|
|
[ByRefEvent]
|
|
public record struct NewsArticlePublishedEvent(NewsArticle Article);
|
|
|
|
[ByRefEvent]
|
|
public record struct NewsArticleDeletedEvent;
|