Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
FastConditionSetter.cs
Go to the documentation of this file.
1using System;
2
4
6{
7 private Action<SimulatorInfo> _setup;
8
9 private Action<SimulatorInfo> _tearDown;
10
11 public FastConditionSetter(Action<SimulatorInfo> setup, Action<SimulatorInfo> tearDown)
12 {
13 _setup = setup;
14 _tearDown = tearDown;
15 }
16
18 {
19 if (_setup != null)
20 {
21 _setup(info);
22 }
23 }
24
26 {
27 if (_tearDown != null)
28 {
30 }
31 }
32
34 {
35 return 1;
36 }
37}
FastConditionSetter(Action< SimulatorInfo > setup, Action< SimulatorInfo > tearDown)