C# Class Terraria.GameContent.Generation.TrackGenerator

Afficher le fichier Open project: EmuDevs/EDTerraria Class Usage Examples

Méthodes publiques

Méthode Description
FindPath ( int x, int y, int minimumLength, bool debugMode = false ) : bool
Generate ( int trackCount, int minimumLength ) : void
Run ( Point start ) : void
Run ( int trackCount = 30, int minimumLength = 250 ) : void

Private Methods

Méthode Description
CanTrackBePlaced ( int x, int y ) : bool
IsLocationEmpty ( int x, int y ) : bool
SmoothTrack ( TrackHistory history, int length ) : void

Method Details

FindPath() public méthode

public FindPath ( int x, int y, int minimumLength, bool debugMode = false ) : bool
x int
y int
minimumLength int
debugMode bool
Résultat bool

Generate() public méthode

public Generate ( int trackCount, int minimumLength ) : void
trackCount int
minimumLength int
Résultat void

Run() public static méthode

public static Run ( Point start ) : void
start Point
Résultat void

Run() public static méthode

public static Run ( int trackCount = 30, int minimumLength = 250 ) : void
trackCount int
minimumLength int
Résultat void