News UI overhaul and PDA notifications (#19610)
This commit is contained in:
@@ -4,16 +4,31 @@ namespace Content.Shared.MassMedia.Systems;
|
||||
|
||||
public abstract class SharedNewsSystem : EntitySystem
|
||||
{
|
||||
public const int MaxNameLength = 25;
|
||||
public const int MaxArticleLength = 2048;
|
||||
public const int MaxTitleLength = 25;
|
||||
public const int MaxContentLength = 2048;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public struct NewsArticle
|
||||
{
|
||||
public string Name;
|
||||
[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;
|
||||
|
||||
Reference in New Issue
Block a user