114 lines
3.3 KiB
C++
114 lines
3.3 KiB
C++
#ifndef TJD_UI_APP_SPORT_DATA_INIT_H
|
||
#define TJD_UI_APP_SPORT_DATA_INIT_H
|
||
|
||
#include <string>
|
||
#include <unordered_map>
|
||
namespace TJD {
|
||
#define MAX_SPORT_TYPE 58
|
||
|
||
enum SportTypeIndex
|
||
{
|
||
SPORT_TYPE_01_OUTDOOR_RUNNING_INDEX,
|
||
SPORT_TYPE_02_OUTDOOR_WALKING_INDEX,
|
||
SPORT_TYPE_03_INDOOR_CYCLING_INDEX,
|
||
SPORT_TYPE_04_FOOTBALL_INDEX,
|
||
SPORT_TYPE_05_BASKETBALL_INDEX,
|
||
SPORT_TYPE_06_INDOOR_RUNNING_INDEX,
|
||
SPORT_TYPE_07_INDOOR_WALKING_INDEX,
|
||
SPORT_TYPE_08_ELLIPTICAL_INDEX,
|
||
SPORT_TYPE_09_INDOOR_SWIMMI_INDEX,
|
||
SPORT_TYPE_10_OUTDOOR_SWIMM_INDEX,
|
||
SPORT_TYPE_11_CYCLING_INDEX,
|
||
SPORT_TYPE_12_ON_FOOT_INDEX,
|
||
SPORT_TYPE_13_STAIRCASE_INDEX,
|
||
SPORT_TYPE_14_ROWING_MACHINE_INDEX,
|
||
SPORT_TYPE_15_JUZHONG_INDEX,
|
||
SPORT_TYPE_16_STEPPER_INDEX,
|
||
SPORT_TYPE_17_STROLLER_INDEX,
|
||
SPORT_TYPE_18_HITI_INDEX,
|
||
SPORT_TYPE_19_GYMNASTICS_INDEX,
|
||
SPORT_TYPE_20_GROUP_INDEX,
|
||
SPORT_TYPE_21_YOGA_INDEX,
|
||
SPORT_TYPE_22_PILATES_INDEX,
|
||
SPORT_TYPE_23_INSTRUMENT_INDEX,
|
||
SPORT_TYPE_24_TAEKWONDO_INDEX,
|
||
SPORT_TYPE_25_BOXING_INDEX,
|
||
SPORT_TYPE_26_FREE_COMBAT_INDEX,
|
||
SPORT_TYPE_27_KARATE_INDEX,
|
||
SPORT_TYPE_28_FENCING_INDEX,
|
||
SPORT_TYPE_29_CORE_TRAINING_INDEX,
|
||
SPORT_TYPE_30_KICKBOXING_INDEX,
|
||
SPORT_TYPE_31_KENDO_INDEX,
|
||
SPORT_TYPE_32_BELLY_DANCE_INDEX,
|
||
SPORT_TYPE_33_LATIN_INDEX,
|
||
SPORT_TYPE_34_JAZZ_INDEX,
|
||
SPORT_TYPE_35_BALLET_INDEX,
|
||
SPORT_TYPE_36_ROLLER_SKATING_INDEX,
|
||
SPORT_TYPE_37_HULA_HOOP_INDEX,
|
||
SPORT_TYPE_38_FRISBEE_INDEX,
|
||
SPORT_TYPE_39_BADMINTON_INDEX,
|
||
SPORT_TYPE_40_PING_PONG_INDEX,
|
||
SPORT_TYPE_41_TENNIS_INDEX,
|
||
SPORT_TYPE_42_BILLIARDS_INDEX,
|
||
SPORT_TYPE_43_BOWLING_INDEX,
|
||
SPORT_TYPE_44_VOLLEYBALL_INDEX,
|
||
SPORT_TYPE_45_BASEBALL_INDEX,
|
||
SPORT_TYPE_46_RUGBY_INDEX,
|
||
SPORT_TYPE_47_HOCKEY_INDEX,
|
||
SPORT_TYPE_48_ARCHERY_INDEX,
|
||
SPORT_TYPE_49_KICK_INDEX,
|
||
SPORT_TYPE_50_SKIPPING_INDEX,
|
||
SPORT_TYPE_51_RIDING_INDEX,
|
||
SPORT_TYPE_52_SAILBOAT_INDEX,
|
||
SPORT_TYPE_53_SURFING_INDEX,
|
||
SPORT_TYPE_54_SKATE_INDEX,
|
||
SPORT_TYPE_55_SKATING_INDEX,
|
||
SPORT_TYPE_56_CANOEING_INDEX,
|
||
SPORT_TYPE_57_MOTORBOAT_INDEX,
|
||
SPORT_TYPE_58_FREE_TRAINING_INDEX,
|
||
SPORT_EDIT_INDEX,
|
||
SPORT_MAX_INDEX,
|
||
};
|
||
|
||
struct SportInfo
|
||
{
|
||
SportTypeIndex index;
|
||
int imgIconResId;
|
||
// std::string description;
|
||
uint16_t sportTypeId;
|
||
// std::string goal;
|
||
uint16_t goalId;
|
||
bool state; // 0:未添加,1:已添加
|
||
};
|
||
|
||
struct EditItemResInfo
|
||
{
|
||
uint8_t index;
|
||
int iconId;
|
||
|
||
uint16_t sportTypeId;
|
||
// const char *name;
|
||
bool state;
|
||
};
|
||
|
||
struct SportGoal
|
||
{
|
||
std::string sportGoal; //主界面目标
|
||
std::string distGoal; //距离选择目标
|
||
std::string timeGoal; //时间选择目标
|
||
std::string caloriesGoal; //卡路里选择目标
|
||
std::string heartRateRemindGoal; //心率提醒选择目标
|
||
std::string timeRemindGoal; //时间提醒选择目标
|
||
std::string distRemindGoal; //单段提醒选择目标
|
||
};
|
||
|
||
extern SportGoal g_pv_SportGoal[MAX_SPORT_TYPE];
|
||
extern EditItemResInfo g_pv_EditItemInfo[MAX_SPORT_TYPE];
|
||
extern SportInfo g_pv_Sport[SPORT_MAX_INDEX];
|
||
extern uint8_t hashMap[MAX_SPORT_TYPE];
|
||
extern bool g_HeartRateReminder[58][5];
|
||
extern bool g_TimeReminder[58][7];
|
||
extern bool g_DistanceReminder[58][6];
|
||
} // namespace TJD
|
||
#endif /* TJD_UI_APP_SPORT_DATA_INIT_H */
|