Files
crystall-punk-14/Content.Shared/Examine/ExamineSystemMessages.cs

54 lines
1.6 KiB
C#
Raw Permalink Normal View History

2022-02-20 20:42:16 -07:00
using Content.Shared.Verbs;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
2021-06-09 22:19:39 +02:00
namespace Content.Shared.Examine
{
public static class ExamineSystemMessages
{
[Serializable, NetSerializable]
public sealed class RequestExamineInfoMessage : EntityEventArgs
{
public readonly NetEntity NetEntity;
2023-01-27 18:15:39 -05:00
public readonly int Id;
public readonly bool GetVerbs;
public RequestExamineInfoMessage(NetEntity netEntity, int id, bool getVerbs=false)
{
NetEntity = netEntity;
2023-01-27 18:15:39 -05:00
Id = id;
GetVerbs = getVerbs;
}
}
[Serializable, NetSerializable]
public sealed class ExamineInfoResponseMessage : EntityEventArgs
{
public readonly NetEntity EntityUid;
2023-01-27 18:15:39 -05:00
public readonly int Id;
public readonly FormattedMessage Message;
2022-02-20 20:42:16 -07:00
public List<Verb>? Verbs;
public readonly bool CenterAtCursor;
public readonly bool OpenAtOldTooltip;
2022-08-14 01:59:14 -04:00
public readonly bool KnowTarget;
public ExamineInfoResponseMessage(NetEntity entityUid, int id, FormattedMessage message, List<Verb>? verbs=null,
2022-08-14 01:59:14 -04:00
bool centerAtCursor=true, bool openAtOldTooltip=true, bool knowTarget = true)
{
EntityUid = entityUid;
2023-01-27 18:15:39 -05:00
Id = id;
Message = message;
2022-02-20 20:42:16 -07:00
Verbs = verbs;
CenterAtCursor = centerAtCursor;
OpenAtOldTooltip = openAtOldTooltip;
2022-08-14 01:59:14 -04:00
KnowTarget = knowTarget;
}
}
}
}