Anvil
Anvil.API.NwTimeSpan Class Reference

Helpers to convert game time units to a TimeSpan. More...

Static Public Member Functions

static TimeSpan FromHours (int hours)
 Returns a TimeSpan equal to the specified amount of game hours. More...
 
static TimeSpan FromRounds (int rounds)
 Returns a TimeSpan equal to the specified amount of rounds. More...
 
static TimeSpan FromTurns (int turns)
 Returns a TimeSpan equal to specified amount of turns. More...
 

Detailed Description

Helpers to convert game time units to a TimeSpan.

Member Function Documentation

◆ FromHours()

static TimeSpan Anvil.API.NwTimeSpan.FromHours ( int  hours)
inlinestatic

Returns a TimeSpan equal to the specified amount of game hours.

Parameters
hoursThe number of rounds.

◆ FromRounds()

static TimeSpan Anvil.API.NwTimeSpan.FromRounds ( int  rounds)
inlinestatic

Returns a TimeSpan equal to the specified amount of rounds.

Parameters
roundsThe number of rounds.

◆ FromTurns()

static TimeSpan Anvil.API.NwTimeSpan.FromTurns ( int  turns)
inlinestatic

Returns a TimeSpan equal to specified amount of turns.

Parameters
turnsThe number of turns.

The documentation for this class was generated from the following file: