C# Класс PGCGame.CoreTypes.Extensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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