2019-04-09 17:33:53 +02:00
|
|
|
using System;
|
2022-02-20 20:42:16 -07:00
|
|
|
using Content.Shared.Verbs;
|
2019-04-15 21:11:38 -06:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
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
|
|
|
{
|
|
|
|
|
public readonly EntityUid EntityUid;
|
|
|
|
|
|
2022-02-13 20:20:58 -07:00
|
|
|
public readonly bool GetVerbs;
|
|
|
|
|
|
|
|
|
|
public RequestExamineInfoMessage(EntityUid entityUid, bool getVerbs=false)
|
2019-04-09 17:33:53 +02:00
|
|
|
{
|
|
|
|
|
EntityUid = entityUid;
|
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
|
|
|
{
|
|
|
|
|
public readonly EntityUid EntityUid;
|
|
|
|
|
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-02-20 20:42:16 -07:00
|
|
|
public ExamineInfoResponseMessage(EntityUid entityUid, FormattedMessage message, List<Verb>? verbs=null,
|
|
|
|
|
bool centerAtCursor=true, bool openAtOldTooltip=true)
|
2019-04-09 17:33:53 +02:00
|
|
|
{
|
|
|
|
|
EntityUid = entityUid;
|
|
|
|
|
Message = message;
|
2022-02-20 20:42:16 -07:00
|
|
|
Verbs = verbs;
|
2022-02-13 20:20:58 -07:00
|
|
|
CenterAtCursor = centerAtCursor;
|
|
|
|
|
OpenAtOldTooltip = openAtOldTooltip;
|
2019-04-09 17:33:53 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|