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