mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 00:57:26 +00:00
* it breathes * probably okay * Create station-report.ftl thing miwssing * IAA store update * guidebook * update on things * revert robusttoolbox * make it fit into folders and clipboards * update on the styling of paper
23 lines
642 B
C#
23 lines
642 B
C#
using Content.Shared._Goobstation.StationReport;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Shared._Goobstation.StationReport;
|
|
|
|
public sealed class StationReportSystem : EntitySystem
|
|
{
|
|
//stores the last received station report
|
|
public string? StationReportText { get; private set; } = null;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeNetworkEvent<StationReportEvent>(OnStationReportReceived);
|
|
}
|
|
|
|
private void OnStationReportReceived(StationReportEvent ev)
|
|
{
|
|
//Save the received message in the variable
|
|
StationReportText = ev.StationReportText;
|
|
}
|
|
}
|