Save round information into replay_final.yml (#23013)

* Save round information into the replay

* Add round end text too

* This is way better

* Get actual job

* oop

* OK THERE

* Fake line endings to make life easier

* I was told this yaml is legal

* I just realised this will make my life easier

* REVIEWS BABY IM A PROGRAMMER MOMMY

* Live pjb reaction

* Live pjb reaction 2

* Reviews 2

* Dont need this

* Please no more have mercy on my soul

* Oh frick
This commit is contained in:
Vasilis
2024-02-17 21:30:54 +01:00
committed by GitHub
parent 5b485fedbd
commit cb999d23f4
5 changed files with 63 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Roles;
using Robust.Shared.Network;
using Robust.Shared.Replays;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Markdown.Mapping;
@@ -144,18 +145,37 @@ namespace Content.Shared.GameTicking
}
}
[Serializable, NetSerializable]
public sealed class RoundEndMessageEvent : EntityEventArgs
[Serializable, NetSerializable, DataDefinition]
public sealed partial class RoundEndMessageEvent : EntityEventArgs
{
[Serializable, NetSerializable]
public struct RoundEndPlayerInfo
[Serializable, NetSerializable, DataDefinition]
public partial struct RoundEndPlayerInfo
{
[DataField]
public string PlayerOOCName;
[DataField]
public string? PlayerICName;
[DataField, NonSerialized]
public NetUserId? PlayerGuid;
public string Role;
[DataField, NonSerialized]
public string[] JobPrototypes;
[DataField, NonSerialized]
public string[] AntagPrototypes;
public NetEntity? PlayerNetEntity;
[DataField]
public bool Antag;
[DataField]
public bool Observer;
public bool Connected;
}