You've already forked ultrasm64-2
mirror of
https://github.com/HackerN64/ultrasm64-2.git
synced 2026-01-21 10:38:08 -08:00
refresh 4
This commit is contained in:
33
include/course_table.h
Normal file
33
include/course_table.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef _COURSE_TABLE_H
|
||||
#define _COURSE_TABLE_H
|
||||
|
||||
// Start of the 3 cap courses in a row.
|
||||
#define COURSE_CAP_COURSES COURSE_COTMC
|
||||
|
||||
#define DEFINE_COURSE(courseenum, _1, _2, _3, _4) courseenum,
|
||||
#define DEFINE_COURSES_END() \
|
||||
COURSE_BONUS_STAGES, \
|
||||
COURSE_STAGES_MAX = COURSE_BONUS_STAGES - 1, \
|
||||
COURSE_STAGES_COUNT = COURSE_STAGES_MAX,
|
||||
|
||||
#define DEFINE_BONUS_COURSE(courseenum, _1, _2, _3, _4) courseenum,
|
||||
|
||||
enum CourseNum
|
||||
{
|
||||
COURSE_NONE, // (0) Overworld (Castle Grounds, etc)
|
||||
#include "levels/course_defines.h"
|
||||
COURSE_END, // To mark end + 1 for marking max and count.
|
||||
// Todo: clean this up. This is still bad. Which
|
||||
// one is clearer? Need to get rid of one of these.
|
||||
COURSE_MAX = COURSE_END - 1,
|
||||
COURSE_COUNT = COURSE_MAX,
|
||||
COURSE_MIN = COURSE_NONE + 1
|
||||
};
|
||||
|
||||
#undef DEFINE_COURSE
|
||||
#undef DEFINE_COURSES_END
|
||||
#undef DEFINE_BONUS_COURSE
|
||||
|
||||
#define COURSE_IS_MAIN_COURSE(cmd) (cmd >= COURSE_MIN && cmd <= COURSE_STAGES_MAX)
|
||||
|
||||
#endif // _COURSE_TABLE_H
|
||||
Reference in New Issue
Block a user