25 lines
470 B
C
25 lines
470 B
C
|
#ifndef __CHALLENGES
|
||
|
#define __CHALLENGES
|
||
|
|
||
|
typedef struct{
|
||
|
char name[256];
|
||
|
char description[512];
|
||
|
float goldTime,silverTime,bronzeTime;
|
||
|
int requirements;
|
||
|
int color;
|
||
|
int reverse;
|
||
|
tFileRef map,car,environment;
|
||
|
tFileRef replay;
|
||
|
} tChallenge;
|
||
|
|
||
|
typedef struct{
|
||
|
int numChallenges;
|
||
|
tChallenge *challenges;
|
||
|
} tChallengeList;
|
||
|
|
||
|
#define kChallengeListFileName "challenges.cfg"
|
||
|
|
||
|
int HasChallengeRequirements(int requirements,int hasReq);
|
||
|
void InterfaceChallenge();
|
||
|
|
||
|
#endif
|