Race now has a 10 minute delay before starting (which is increased whenever it falls below 5 minutes).
The start button (visible to host) starts the race in whatever the prepatory time is. #story[1352]
This commit is contained in:
@@ -151,4 +151,9 @@ public class EmptyRaceDataSource implements RaceDataSource {
|
||||
public void incrementSequenceNumber() {
|
||||
sequenceNumber++;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStartDateTime(ZonedDateTime time) {
|
||||
raceStartTime = time;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +67,12 @@ public interface RaceDataSource {
|
||||
*/
|
||||
ZonedDateTime getStartDateTime();
|
||||
|
||||
/**
|
||||
* Sets the start time/date of the race.
|
||||
* @param time Time to start at.
|
||||
*/
|
||||
void setStartDateTime(ZonedDateTime time);
|
||||
|
||||
/**
|
||||
* Returns the creation time/date of the race xml file.
|
||||
* @return The race xml file's creation time.
|
||||
|
||||
@@ -507,4 +507,9 @@ public class RaceXMLReader extends XMLReader implements RaceDataSource {
|
||||
public void incrementSequenceNumber() {
|
||||
sequenceNumber++;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStartDateTime(ZonedDateTime time) {
|
||||
raceStartTime = time;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user