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

35 lines
1.0 KiB
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;
public readonly Dictionary<string, string> Memory;
2021-12-11 15:12:55 -08:00
public CharacterInfoEvent(NetEntity netEntity, string jobTitle, Dictionary<string, List<ObjectiveInfo>> objectives, string? briefing, Dictionary<string,string> memory)
2021-12-11 15:12:55 -08:00
{
NetEntity = netEntity;
2021-12-11 15:12:55 -08:00
JobTitle = jobTitle;
Objectives = objectives;
Briefing = briefing;
Memory = memory;
2021-12-11 15:12:55 -08:00
}
}