Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CaptureManager.cs
Go to the documentation of this file.
1using System;
4
6
8{
9 public static CaptureManager Instance = new CaptureManager();
10
12
14
15 public bool IsCapturing
16 {
17 get
18 {
19 if (Main.dedServ)
20 {
21 return false;
22 }
23 return _camera.IsCapturing;
24 }
25 }
26
27 public bool Active
28 {
29 get
30 {
31 return _interface.Active;
32 }
33 set
34 {
36 {
38 }
39 }
40 }
41
42 public bool UsingMap
43 {
44 get
45 {
46 if (!Active)
47 {
48 return false;
49 }
50 return _interface.UsingMap();
51 }
52 }
53
55 {
57 if (!Main.dedServ)
58 {
59 _camera = new CaptureCamera(Main.instance.GraphicsDevice);
60 }
61 }
62
63 public void Scrolling()
64 {
66 }
67
68 public void Update()
69 {
71 }
72
73 public void Draw(SpriteBatch sb)
74 {
75 _interface.Draw(sb);
76 }
77
78 public float GetProgress()
79 {
80 return _camera.GetProgress();
81 }
82
83 public void Capture()
84 {
85 CaptureSettings settings = new CaptureSettings
86 {
87 Area = new Rectangle(2660, 100, 1000, 1000),
88 UseScaling = false
89 };
90 Capture(settings);
91 }
92
93 public void Capture(CaptureSettings settings)
94 {
95 _camera.Capture(settings);
96 }
97
98 public void DrawTick()
99 {
101 }
102
103 public void Dispose()
104 {
106 }
107}
void Capture(CaptureSettings settings)
void Capture(CaptureSettings settings)
static bool dedServ
Definition Main.cs:1226
static Main instance
Definition Main.cs:283
static bool CaptureModeDisabled
Definition Main.cs:279