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

◆ PlacePath()

void Terraria.GameContent.Generation.TrackGenerator.PlacePath ( )
inlineprivate

Definition at line 25 of file TrackGenerator.cs.

26 {
27 int length = this._length;
28 int length2 = this._length;
29 long num = 0L;
30 if (length2 == 0)
31 {
32 }
33 UnifiedRandom genRand = WorldGen.genRand;
34 int num2 = 7;
35 if (genRand.Next(num2) != 0)
36 {
37 int num3 = this.playerHeight;
38 return;
39 }
40 if (length2 == 0)
41 {
42 }
44 int num4 = 5;
45 int num5 = 9;
46 int num6 = genRand2.Next(num4, num5);
48 if (length2 == 0)
49 {
50 }
51 TrackGenerator.TrackHistory[] history = this._history;
52 Tile tile;
53 ushort wall = tile.wall;
54 if (history == null)
55 {
56 }
57 TrackGenerator.TrackHistory[] history2 = this._history;
58 Tile tile2;
59 ushort wall2 = tile2.wall;
60 if (history == null)
61 {
62 }
63 Tile tile3;
64 ushort wall3 = tile3.wall;
65 if (history == null)
66 {
67 }
68 TrackGenerator.TrackHistory[] history3 = this._history;
69 long num7 = 0L;
70 Tile tile4;
71 ushort type = tile4.type;
72 TrackGenerator.TrackHistory[] history4 = this._history;
73 if (history3 == null)
74 {
75 }
76 int num8 = 1;
77 long num9 = 0L;
78 long num10 = 0L;
79 long num11 = 0L;
80 WorldGen.KillTile(0, (int)num7, num9 != 0L, num10 != 0L, num8 != 0);
81 int num12 = this.playerHeight;
82 long num13 = 0L;
83 if (num12 == 0)
84 {
85 }
87 int num14 = 7;
88 int num15;
89 if (genRand3.Next(num14) == 0)
90 {
91 if (num12 == 0)
92 {
93 }
95 num15 = 5;
96 int num16 = 9;
99 }
100 TrackGenerator.TrackHistory[] history5 = this._history;
101 int num18 = 1;
102 long num19 = 0L;
103 Tile.SmoothSlope(0, num15, num18 != 0, num19 != 0L);
104 int num20 = this.playerHeight;
105 int num21 = 1;
106 Tile.SmoothSlope(0, num15, num21 != 0, num19 != 0L);
107 Tile tile5;
108 bool flag = tile5.wire();
109 TrackGenerator.TrackHistory[] history6;
110 if (num20 != 0 && num13 != 0L)
111 {
112 history6 = this._history;
113 if (history6 == null)
114 {
115 }
116 Tile tile6;
117 tile6.ClearEverything();
118 if (history6 == null)
119 {
120 }
121 int num22 = 314;
122 int num23 = 1;
123 int num24 = 1;
124 long num25 = 0L;
125 bool flag2 = WorldGen.PlaceTile(0, (int)num, num22, num25 != 0L, num23 != 0, (int)num11, num24);
126 return;
127 }
128 if (history6 == null)
129 {
130 }
131 int num26 = 314;
132 Tile tile7;
133 tile7.ResetToType((ushort)num26);
134 Tile tile8;
135 tile8.wire(false);
136 if (num13 != 0L)
137 {
138 TrackGenerator.TrackHistory[] history7 = this._history;
139 int length3 = this._length;
140 int num27 = this.playerHeight;
141 int num28 = 1;
142 WorldUtils.TileFrame(0, (int)num, num28 != 0);
143 int num29 = this.playerHeight;
144 }
145 }
class f__AnonymousType0<< Count > j__TPar
readonly TrackGenerator.TrackHistory[] _history
static void TileFrame(int x, int y, bool frameNeighbors=false)

References Terraria.GameContent.Generation.TrackGenerator._history, Terraria.GameContent.Generation.TrackGenerator._length, Terraria.Tile.ClearEverything(), Terraria.WorldGen.genRand, j__TPar, Terraria.WorldGen.KillTile(), System.L, System.length, Terraria.Utilities.UnifiedRandom.Next(), Terraria.WorldGen.PlaceTile(), Terraria.GameContent.Generation.TrackGenerator.playerHeight, Terraria.Tile.ResetToType(), Terraria.Tile.SmoothSlope(), Terraria.WorldBuilding.WorldUtils.TileFrame(), Terraria.Tile.type, Terraria.Tile.wall, and Terraria.Tile.wire().

Referenced by Terraria.GameContent.Generation.TrackGenerator.Place().