C# Class TDSM.Core.Misc.World

Afficher le fichier Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Méthodes publiques

Méthode Description
GetParsableTime ( ) : double
GetRandomClearTile ( float x, float y, int attempts = 1, int rangeY = 50, int rangeX = 50 ) : Vector2
GetRandomClearTile ( int x, int y, int attempts = 1, int rangeX = 50, int rangeY = 50 ) : Vector2
GetWorldSize ( ) : WorldSize
IsLarge ( this size ) : bool
IsMedium ( this size ) : bool
IsSmall ( this size ) : bool
IsTileClear ( int x, int y ) : bool
IsTileValid ( int x, int y ) : bool
SetParsedTime ( double time ) : void
SetTime ( double time, bool dayTime = true ) : void

Method Details

GetParsableTime() public static méthode

public static GetParsableTime ( ) : double
Résultat double

GetRandomClearTile() public static méthode

public static GetRandomClearTile ( float x, float y, int attempts = 1, int rangeY = 50, int rangeX = 50 ) : Vector2
x float
y float
attempts int
rangeY int
rangeX int
Résultat Vector2

GetRandomClearTile() public static méthode

public static GetRandomClearTile ( int x, int y, int attempts = 1, int rangeX = 50, int rangeY = 50 ) : Vector2
x int
y int
attempts int
rangeX int
rangeY int
Résultat Vector2

GetWorldSize() public static méthode

public static GetWorldSize ( ) : WorldSize
Résultat WorldSize

IsLarge() public static méthode

public static IsLarge ( this size ) : bool
size this
Résultat bool

IsMedium() public static méthode

public static IsMedium ( this size ) : bool
size this
Résultat bool

IsSmall() public static méthode

public static IsSmall ( this size ) : bool
size this
Résultat bool

IsTileClear() public static méthode

public static IsTileClear ( int x, int y ) : bool
x int
y int
Résultat bool

IsTileValid() public static méthode

public static IsTileValid ( int x, int y ) : bool
x int
y int
Résultat bool

SetParsedTime() public static méthode

public static SetParsedTime ( double time ) : void
time double
Résultat void

SetTime() public static méthode

public static SetTime ( double time, bool dayTime = true ) : void
time double
dayTime bool
Résultat void