Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BoundedChannelOptions.cs
Go to the documentation of this file.
2
4{
5 private int _capacity;
6
8
9 public int Capacity
10 {
11 get
12 {
13 return _capacity;
14 }
15 set
16 {
17 if (value < 1)
18 {
19 throw new ArgumentOutOfRangeException("value");
20 }
22 }
23 }
24
26 {
27 get
28 {
29 return _mode;
30 }
31 set
32 {
33 if ((uint)value <= 3u)
34 {
35 _mode = value;
36 return;
37 }
38 throw new ArgumentOutOfRangeException("value");
39 }
40 }
41
43 {
44 if (capacity < 1)
45 {
46 throw new ArgumentOutOfRangeException("capacity");
47 }
49 }
50}