Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RecommendedAsConfigurableAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Property)]
6[Obsolete("RecommendedAsConfigurableAttribute has been deprecated. Use System.ComponentModel.SettingsBindableAttribute instead.")]
8{
9 public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(recommendedAsConfigurable: false);
10
11 public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(recommendedAsConfigurable: true);
12
14
15 public bool RecommendedAsConfigurable { get; }
16
17 public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable)
18 {
19 RecommendedAsConfigurable = recommendedAsConfigurable;
20 }
21
22 public override bool Equals([NotNullWhen(true)] object? obj)
23 {
24 if (obj == this)
25 {
26 return true;
27 }
28 if (obj is RecommendedAsConfigurableAttribute recommendedAsConfigurableAttribute)
29 {
30 return recommendedAsConfigurableAttribute.RecommendedAsConfigurable == RecommendedAsConfigurable;
31 }
32 return false;
33 }
34
35 public override int GetHashCode()
36 {
37 return base.GetHashCode();
38 }
39
40 public override bool IsDefaultAttribute()
41 {
43 }
44}