Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RecursionLimiter.cs
Go to the documentation of this file.
2
3internal sealed class RecursionLimiter
4{
5 private readonly int _maxDepth;
6
7 private int _depth;
8
10
11 internal bool IsExceededLimit => _depth > _maxDepth;
12
13 internal int Depth
14 {
15 get
16 {
17 return _depth;
18 }
19 set
20 {
21 _depth = value;
22 }
23 }
24
26 {
27 get
28 {
29 if (_deferredWorkItems == null)
30 {
32 }
33 return _deferredWorkItems;
34 }
35 }
36
38 {
39 _depth = 0;
41 }
42}