terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
WindGrid.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020009EE RID: 2542
9 public class WindGrid
10 {
11 // Token: 0x06004B52 RID: 19282 RVA: 0x0026E884 File Offset: 0x0026CA84
12 public void SetSize(int targetWidth, int targetHeight)
13 {
14 int width = this._width;
15 if (!true)
16 {
17 }
18 int num = Math.Max(width, targetWidth);
19 int height = this._height;
20 this._width = num;
21 int num2 = Math.Max(height, targetHeight);
23 this.ResizeGrid();
24 }
25
26 // Token: 0x06004B53 RID: 19283 RVA: 0x0026E8C8 File Offset: 0x0026CAC8
27 public void Update()
28 {
29 int gameTime = this._gameTime;
31 if (gameTime == 0)
32 {
33 }
35 this.ScanPlayers();
36 }
37
38 // Token: 0x06004B54 RID: 19284 RVA: 0x0026E8F8 File Offset: 0x0026CAF8
39 public void GetWindTime(int tileX, int tileY, int timeThreshold, [Out] int windTimeLeft, [Out] int directionX, [Out] int directionY)
40 {
41 WindGrid.WindCoord[,] grid = this._grid;
42 int width = this._width;
43 int gameTime = this._gameTime;
46 int gameTime2 = this._gameTime;
48 }
49
50 // Token: 0x06004B55 RID: 19285 RVA: 0x0026E93C File Offset: 0x0026CB3C
51 private void ResizeGrid()
52 {
53 WindGrid.WindCoord[,] grid = this._grid;
54 int width = this._width;
55 WindGrid.WindCoord[,] grid2 = this._grid;
56 int height = this._height;
57 int width2 = this._width;
58 }
59
60 // Token: 0x06004B56 RID: 19286 RVA: 0x0026E974 File Offset: 0x0026CB74
61 private void SetWindTime(int tileX, int tileY, int directionX, int directionY)
62 {
63 WindGrid.WindCoord[,] grid = this._grid;
64 int width = this._width;
65 int gameTime = this._gameTime;
66 int gameTime2 = this._gameTime;
67 }
68
69 // Token: 0x06004B57 RID: 19287 RVA: 0x0026E9A0 File Offset: 0x0026CBA0
70 private void ScanPlayers()
71 {
72 int num = 1;
73 if (num == 0)
74 {
75 }
76 if (num != 0)
77 {
78 if (num == 0)
79 {
80 }
82 long num2 = 0L;
83 this.ScanPlayer((int)num2);
84 return;
85 }
86 long num3 = 0L;
87 if (num == 0)
88 {
89 }
90 this.ScanPlayer((int)num3);
91 }
92
93 // Token: 0x06004B58 RID: 19288 RVA: 0x0026E9DC File Offset: 0x0026CBDC
94 private void ScanPlayer(int i)
95 {
96 int num = 1;
97 if (num == 0)
98 {
99 }
100 if (i == 0 || num == 0 || num != 0)
101 {
102 return;
103 }
104 if (num == 0)
105 {
106 }
107 Vector2 center = Main.Camera.Center;
108 Vector2 unscaledSize = Main.Camera.UnscaledSize;
109 if (num == 0)
110 {
111 }
113 bool flag = rectangle.Intersects(rectangle);
114 if (num == 0)
115 {
116 }
117 WindGrid.WindCoord[,] grid = this._grid;
118 int width = this._width;
119 int gameTime = this._gameTime;
120 int gameTime2 = this._gameTime;
121 }
122
123 // Token: 0x06004B59 RID: 19289 RVA: 0x0026EA68 File Offset: 0x0026CC68
124 public WindGrid()
125 {
126 }
127
128 // Token: 0x06004B5A RID: 19290 RVA: 0x0026EA7C File Offset: 0x0026CC7C
129 // Note: this type is marked as 'beforefieldinit'.
130 static WindGrid()
131 {
132 }
133
134 // Token: 0x040085A3 RID: 34211
136
137 // Token: 0x040085A4 RID: 34212
138 private int _width;
139
140 // Token: 0x040085A5 RID: 34213
141 private int _height;
142
143 // Token: 0x040085A6 RID: 34214
144 private int _gameTime;
145
146 // Token: 0x040085A7 RID: 34215
147 private static List<Point> points;
148
149 // Token: 0x020009EF RID: 2543
150 private struct WindCoord
151 {
152 // Token: 0x040085A8 RID: 34216
153 public int Time;
154
155 // Token: 0x040085A9 RID: 34217
156 public int DirectionX;
157
158 // Token: 0x040085AA RID: 34218
159 public int DirectionY;
160 }
161 }
162}
class f__AnonymousType0<< Count > j__TPar
static byte Max(byte val1, byte val2)
Definition Math.cs:111
void GetWindTime(int tileX, int tileY, int timeThreshold, [Out] int windTimeLeft, [Out] int directionX, [Out] int directionY)
Definition WindGrid.cs:39
void SetWindTime(int tileX, int tileY, int directionX, int directionY)
Definition WindGrid.cs:61
void SetSize(int targetWidth, int targetHeight)
Definition WindGrid.cs:12
static bool NetClient
Definition Main.cs:5438
static Terraria.Graphics.Camera Camera
Definition Main.cs:296
static bool SettingsEnabled_TilesSwayInWind
Definition Main.cs:1805
void Intersects(Rectangle value, [Out] bool result)
Definition Rectangle.cs:263