2017-08-30 19:44:27 +00:00
|
|
|
#ifndef GAME_CLIENT_COMPONENTS_RACE_H
|
|
|
|
#define GAME_CLIENT_COMPONENTS_RACE_H
|
|
|
|
|
|
|
|
#include <base/system.h>
|
|
|
|
|
|
|
|
class CRaceHelper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// these functions return the time in milliseconds, time 0 is invalid
|
2017-08-30 22:08:54 +00:00
|
|
|
static int TimeFromSecondsStr(const char *pStr); // x.xxx
|
|
|
|
static int TimeFromStr(const char *pStr); // x minute(s) x.xx second(s)
|
|
|
|
static int TimeFromFinishMessage(const char *pStr, char *pNameBuf, int NameBufSize); // xxx finished in: x minute(s) x.xx second(s)
|
2017-08-30 19:44:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|