Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SoapAttributes.cs
Go to the documentation of this file.
3
5
6public class SoapAttributes
7{
8 private bool _soapIgnore;
9
11
13
15
17
18 private object _soapDefaultValue;
19
21 {
22 get
23 {
25 if (_soapElement != null)
26 {
28 }
29 if (_soapAttribute != null)
30 {
32 }
33 if (_soapEnum != null)
34 {
36 }
37 if (_soapType != null)
38 {
40 }
41 return soapAttributeFlags;
42 }
43 }
44
46 {
47 get
48 {
49 return _soapType;
50 }
51 set
52 {
54 }
55 }
56
58 {
59 get
60 {
61 return _soapEnum;
62 }
63 set
64 {
66 }
67 }
68
69 public bool SoapIgnore
70 {
71 get
72 {
73 return _soapIgnore;
74 }
75 set
76 {
78 }
79 }
80
82 {
83 get
84 {
85 return _soapElement;
86 }
87 set
88 {
90 }
91 }
92
94 {
95 get
96 {
97 return _soapAttribute;
98 }
99 set
100 {
102 }
103 }
104
105 public object? SoapDefaultValue
106 {
107 get
108 {
109 return _soapDefaultValue;
110 }
111 set
112 {
114 }
115 }
116
118 {
119 }
120
122 {
123 object[] customAttributes = provider.GetCustomAttributes(inherit: false);
124 for (int i = 0; i < customAttributes.Length; i++)
125 {
127 {
128 _soapIgnore = true;
129 break;
130 }
132 {
134 }
136 {
138 }
140 {
142 }
144 {
146 }
148 {
150 }
151 }
152 if (_soapIgnore)
153 {
154 _soapElement = null;
155 _soapAttribute = null;
156 _soapType = null;
157 _soapEnum = null;
158 _soapDefaultValue = null;
159 }
160 }
161
163 {
164 return SoapFlags;
165 }
166}
SoapAttributes(ICustomAttributeProvider provider)