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

◆ CreateMapTile()

static MapTile Terraria.Map.MapHelper.CreateMapTile ( int i,
int j,
byte Light )
inlinestatic

Definition at line 164 of file MapHelper.cs.

165 {
166 if (!true)
167 {
168 }
169 WorldMap map = Main.Map;
170 int num = 100;
171 int underworldLayer = Main.UnderworldLayer;
172 Rectangle scanRegion = Lighting.GetScanRegion();
173 int num2;
174 int num3;
175 if (num == 0 && num == 0)
176 {
177 num2 = 255;
178 SceneMetrics sceneMetrics = Main.SceneMetrics;
179 int <SnowTileCount>k__BackingField = sceneMetrics.<SnowTileCount>k__BackingField;
180 int <HoneyBlockCount>k__BackingField = sceneMetrics.<HoneyBlockCount>k__BackingField;
181 if (17279 == 0)
182 {
183 }
184 bool flag = WorldGen.IsThisAMushroomTree(<SnowTileCount>k__BackingField, 0);
185 num3 = 1;
186 if (num != 0)
187 {
188 goto IL_0098;
189 }
190 if (num == 0)
191 {
192 if (num != 0 || num != 0)
193 {
194 goto IL_0098;
195 }
196 while (num == 0)
197 {
198 }
199 }
200 }
201 if (num3 == 0)
202 {
203 }
204 long num4 = 0L;
205 IL_0098:
206 byte b;
207 return MapTile.Create((ushort)b, (byte)num2, (byte)num4);
208 }
class f__AnonymousType0<< Count > j__TPar

References Terraria.Map.MapTile.Create(), Terraria.Lighting.GetScanRegion(), Terraria.WorldGen.IsThisAMushroomTree(), j__TPar, System.L, Terraria.Main.Map, Terraria.Main.SceneMetrics, and Terraria.Main.UnderworldLayer.

Referenced by Terraria.Map.WorldMap.Update(), Terraria.Map.WorldMap.UpdateLighting(), and Terraria.Map.WorldMap.UpdateType().