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
Terraria.GameContent.Generation.TrackGenerator Class Reference

Classes

struct  TrackHistory
 

Public Member Functions

bool Place (Point origin, int minLength, int maxLength)
 
 TrackGenerator ()
 

Private Types

enum  TrackPlacementState { Available , Obstructed , Invalid }
 
enum  TrackSlope : sbyte { Up = -1 , Straight , Down }
 
enum  TrackMode : byte { Normal , Tunnel }
 

Private Member Functions

void PlacePath ()
 
void CreateTrackStart (Point origin)
 
bool FindPath (int minLength, int maxLength)
 
TrackGenerator.TrackPlacementState CreateTunnel ()
 
void AppendToHistory (TrackGenerator.TrackSlope slope, TrackGenerator.TrackMode mode=TrackGenerator.TrackMode.Normal)
 
TrackGenerator.TrackPlacementState TryRewriteHistoryToAvoidTiles ()
 
void RewriteSlopeDirection (int index, TrackGenerator.TrackSlope slope)
 
TrackGenerator.TrackPlacementState GetHistorySegmentPlacementState (int startIndex, int length)
 
void SmoothTrack ()
 
void DrawPause ()
 

Static Private Member Functions

static bool CanSlopesTouch (TrackGenerator.TrackSlope leftSlope, TrackGenerator.TrackSlope rightSlope)
 
static bool FindSuitableOrigin (Point origin)
 
static TrackGenerator.TrackPlacementState CalculateStateForLocation (int x, int y)
 
static bool IsMinecartTrack (int x, int y)
 
static bool IsLocationInvalid (int x, int y)
 
static TrackGenerator ()
 

Private Attributes

readonly TrackGenerator.TrackHistory[] _history
 
readonly TrackGenerator.TrackHistory[] _rewriteHistory
 
int _xDirection
 
int _length
 
int playerHeight = 6
 

Static Private Attributes

static readonly ushort[] InvalidWalls
 
static readonly ushort[] InvalidTiles
 

Detailed Description

Definition at line 10 of file TrackGenerator.cs.


The documentation for this class was generated from the following file: