Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AmbientSkyDrawCache.cs
Go to the documentation of this file.
2
4{
5 public struct UnderworldCache
6 {
7 public float Scale;
8 }
9
10 public struct OceanLineCache
11 {
12 public float YScreenPosition;
13
14 public float OceanOpacity;
15 }
16
18
20
22
23 public void SetUnderworldInfo(int drawIndex, float scale)
24 {
25 Underworld[drawIndex] = new UnderworldCache
26 {
27 Scale = scale
28 };
29 }
30
31 public void SetOceanLineInfo(float yScreenPosition, float oceanOpacity)
32 {
34 {
35 YScreenPosition = yScreenPosition,
36 OceanOpacity = oceanOpacity
37 };
38 }
39}
void SetOceanLineInfo(float yScreenPosition, float oceanOpacity)