Files
OldThink/Content.Shared/CharacterInfo/SharedCharacterInfoSystem.cs

33 lines
911 B
C#
Raw Normal View History

2022-05-13 00:59:03 -07:00
using Content.Shared.Objectives;
2021-12-11 15:12:55 -08:00
using Robust.Shared.Serialization;
namespace Content.Shared.CharacterInfo;
[Serializable, NetSerializable]
public sealed class RequestCharacterInfoEvent : EntityEventArgs
2021-12-11 15:12:55 -08:00
{
public readonly NetEntity NetEntity;
2021-12-11 15:12:55 -08:00
public RequestCharacterInfoEvent(NetEntity netEntity)
2021-12-11 15:12:55 -08:00
{
NetEntity = netEntity;
2021-12-11 15:12:55 -08:00
}
}
[Serializable, NetSerializable]
public sealed class CharacterInfoEvent : EntityEventArgs
2021-12-11 15:12:55 -08:00
{
public readonly NetEntity NetEntity;
2021-12-11 15:12:55 -08:00
public readonly string JobTitle;
public readonly Dictionary<string, List<ObjectiveInfo>> Objectives;
public readonly string? Briefing;
2021-12-11 15:12:55 -08:00
public CharacterInfoEvent(NetEntity netEntity, string jobTitle, Dictionary<string, List<ObjectiveInfo>> objectives, string? briefing)
2021-12-11 15:12:55 -08:00
{
NetEntity = netEntity;
2021-12-11 15:12:55 -08:00
JobTitle = jobTitle;
Objectives = objectives;
Briefing = briefing;
2021-12-11 15:12:55 -08:00
}
}