Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DefaultEventAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Class)]
6public sealed class DefaultEventAttribute : Attribute
7{
8 public static readonly DefaultEventAttribute Default = new DefaultEventAttribute(null);
9
10 public string? Name { get; }
11
12 public DefaultEventAttribute(string? name)
13 {
14 Name = name;
15 }
16
17 public override bool Equals([NotNullWhen(true)] object? obj)
18 {
19 if (obj is DefaultEventAttribute defaultEventAttribute)
20 {
21 return defaultEventAttribute.Name == Name;
22 }
23 return false;
24 }
25
26 public override int GetHashCode()
27 {
28 return base.GetHashCode();
29 }
30}
override bool Equals([NotNullWhen(true)] object? obj)
static readonly DefaultEventAttribute Default