forked from Rxup/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExamineSystemMessages.cs
53 lines (44 loc) · 1.62 KB
/
ExamineSystemMessages.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Content.Shared.Verbs;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
namespace Content.Shared.Examine
{
public static class ExamineSystemMessages
{
[Serializable, NetSerializable]
public sealed class RequestExamineInfoMessage : EntityEventArgs
{
public readonly NetEntity NetEntity;
public readonly int Id;
public readonly bool GetVerbs;
public RequestExamineInfoMessage(NetEntity netEntity, int id, bool getVerbs=false)
{
NetEntity = netEntity;
Id = id;
GetVerbs = getVerbs;
}
}
[Serializable, NetSerializable]
public sealed class ExamineInfoResponseMessage : EntityEventArgs
{
public readonly NetEntity EntityUid;
public readonly int Id;
public readonly FormattedMessage Message;
public List<Verb>? Verbs;
public readonly bool CenterAtCursor;
public readonly bool OpenAtOldTooltip;
public readonly bool KnowTarget;
public ExamineInfoResponseMessage(NetEntity entityUid, int id, FormattedMessage message, List<Verb>? verbs=null,
bool centerAtCursor=true, bool openAtOldTooltip=true, bool knowTarget = true)
{
EntityUid = entityUid;
Id = id;
Message = message;
Verbs = verbs;
CenterAtCursor = centerAtCursor;
OpenAtOldTooltip = openAtOldTooltip;
KnowTarget = knowTarget;
}
}
}
}