Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EventAttribute.cs
Go to the documentation of this file.
2
3[AttributeUsage(AttributeTargets.Method)]
4public sealed class EventAttribute : Attribute
5{
7
8 private bool m_opcodeSet;
9
10 public int EventId { get; private set; }
11
12 public EventLevel Level { get; set; }
13
14 public EventKeywords Keywords { get; set; }
15
17 {
18 get
19 {
20 return m_opcode;
21 }
22 set
23 {
25 m_opcodeSet = true;
26 }
27 }
28
29 internal bool IsOpcodeSet => m_opcodeSet;
30
31 public EventTask Task { get; set; }
32
33 public EventChannel Channel { get; set; }
34
35 public byte Version { get; set; }
36
37 public string? Message { get; set; }
38
39 public EventTags Tags { get; set; }
40
42
43 public EventAttribute(int eventId)
44 {
45 EventId = eventId;
46 Level = EventLevel.Informational;
47 }
48}