Files
tbd-station-14/Content.Shared/CharacterInfo/SharedCharacterInfoSystem.cs
deltanedas f7711edbe3 Objectives ecs rework (#19967)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-09-16 16:18:10 +10:00

33 lines
911 B
C#

using Content.Shared.Objectives;
using Robust.Shared.Serialization;
namespace Content.Shared.CharacterInfo;
[Serializable, NetSerializable]
public sealed class RequestCharacterInfoEvent : EntityEventArgs
{
public readonly NetEntity NetEntity;
public RequestCharacterInfoEvent(NetEntity netEntity)
{
NetEntity = netEntity;
}
}
[Serializable, NetSerializable]
public sealed class CharacterInfoEvent : EntityEventArgs
{
public readonly NetEntity NetEntity;
public readonly string JobTitle;
public readonly Dictionary<string, List<ObjectiveInfo>> Objectives;
public readonly string? Briefing;
public CharacterInfoEvent(NetEntity netEntity, string jobTitle, Dictionary<string, List<ObjectiveInfo>> objectives, string? briefing)
{
NetEntity = netEntity;
JobTitle = jobTitle;
Objectives = objectives;
Briefing = briefing;
}
}