Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ObjectProgress.cs
Go to the documentation of this file.
2
3internal sealed class ObjectProgress
4{
5 internal bool _isInitial;
6
7 internal int _count;
8
10
11 internal object _expectedTypeInformation;
12
13 internal string _name;
14
16
18
20
21 internal Type _dtType;
22
23 internal int _numItems;
24
26
27 internal object _typeInformation;
28
29 internal int _memberLength;
30
32
33 internal object[] _typeInformationA;
34
35 internal string[] _memberNames;
36
37 internal Type[] _memberTypes;
38
39 internal ParseRecord _pr = new ParseRecord();
40
41 internal ObjectProgress()
42 {
43 }
44
45 internal void Init()
46 {
47 _isInitial = false;
48 _count = 0;
49 _expectedType = BinaryTypeEnum.ObjectUrt;
51 _name = null;
55 _dtType = null;
56 _numItems = 0;
57 _typeInformation = null;
58 _memberLength = 0;
59 _binaryTypeEnumA = null;
60 _typeInformationA = null;
61 _memberNames = null;
62 _memberTypes = null;
63 _pr.Init();
64 }
65
66 internal void ArrayCountIncrement(int value)
67 {
68 _count += value;
69 }
70
72 {
74 outTypeInformation = null;
76 {
77 if (_count == _numItems)
78 {
79 return false;
80 }
83 if (_count == 0)
84 {
85 _isInitial = false;
86 }
87 _count++;
88 return true;
89 }
91 {
92 return false;
93 }
96 if (_count == 0)
97 {
98 _isInitial = false;
99 }
102 _count++;
103 return true;
104 }
105}
bool GetNext(out BinaryTypeEnum outBinaryTypeEnum, out object outTypeInformation)