13 public bool Place(
Point origin,
int minLength,
int maxLength)
19 bool flag = this.
FindPath(minLength, maxLength);
53 ushort wall = tile.
wall;
165 private bool FindPath(
int minLength,
int maxLength)
265 int num =
Math.
Min(0, 43134976);
379 ushort wall = tile.
wall;
393 [Conditional(
"ENABLE_DEBUG")]
394 [Conditional(
"UNITY_EDITOR")]
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
bool Place(Point origin, int minLength, int maxLength)
static bool FindSuitableOrigin(Point origin)
static bool CanSlopesTouch(TrackGenerator.TrackSlope leftSlope, TrackGenerator.TrackSlope rightSlope)
readonly TrackGenerator.TrackHistory[] _rewriteHistory
TrackGenerator.TrackPlacementState GetHistorySegmentPlacementState(int startIndex, int length)
static bool IsLocationInvalid(int x, int y)
TrackGenerator.TrackPlacementState TryRewriteHistoryToAvoidTiles()
TrackGenerator.TrackPlacementState CreateTunnel()
void CreateTrackStart(Point origin)
bool FindPath(int minLength, int maxLength)
void RewriteSlopeDirection(int index, TrackGenerator.TrackSlope slope)
static readonly ushort[] InvalidTiles
static TrackGenerator.TrackPlacementState CalculateStateForLocation(int x, int y)
readonly TrackGenerator.TrackHistory[] _history
void AppendToHistory(TrackGenerator.TrackSlope slope, TrackGenerator.TrackMode mode=TrackGenerator.TrackMode.Normal)
static readonly ushort[] InvalidWalls
static bool IsMinecartTrack(int x, int y)
static int UnderworldLayer
static void TileFrame(int x, int y, bool frameNeighbors=false)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static UnifiedRandom genRand
static bool oceanDepths(int x, int y)
TrackHistory(int x, int y, TrackGenerator.TrackSlope slope)
TrackGenerator.TrackMode Mode
TrackGenerator.TrackSlope Slope
static void SmoothSlope(int x, int y, bool applyToNeighbors=true, bool sync=false)
void ResetToType(ushort type)