C# 클래스 PGCGame.CoreTypes.Extensions

파일 보기 프로젝트 열기: GreatMindsRobotics/PGCGame

공개 메소드들

메소드 설명
NextShipTier ( this random, ShipTier minValue, ShipTier maxValue ) : ShipTier

Generates a new ShipTier between minValue and maxValue, inclusively

Both minimum and maximum values are inclusive for this extension method

NextTimeSpan ( this random, System.TimeSpan minValue, System.TimeSpan maxValue ) : System.TimeSpan

Generates a new TimeSpan between minValue and maxValue

The amount of total milliseconds from each TimeSpan, which is used for random generation, is rounded to an integer.

ToFriendlyString ( this sessType ) : string

메소드 상세

NextShipTier() 공개 정적인 메소드

Generates a new ShipTier between minValue and maxValue, inclusively
Both minimum and maximum values are inclusive for this extension method
public static NextShipTier ( this random, ShipTier minValue, ShipTier maxValue ) : ShipTier
random this Random number generator to use
minValue ShipTier Inclusive minimum value
maxValue ShipTier Inclusive maximum value
리턴 ShipTier

NextTimeSpan() 공개 정적인 메소드

Generates a new TimeSpan between minValue and maxValue
The amount of total milliseconds from each TimeSpan, which is used for random generation, is rounded to an integer.
public static NextTimeSpan ( this random, System.TimeSpan minValue, System.TimeSpan maxValue ) : System.TimeSpan
random this Random number generator to use.
minValue System.TimeSpan Inclusive minimum value.
maxValue System.TimeSpan Exclusive maximum value.
리턴 System.TimeSpan

ToFriendlyString() 공개 정적인 메소드

public static ToFriendlyString ( this sessType ) : string
sessType this
리턴 string