Files
shoot-miniprograms/src/constants.js

80 lines
1.9 KiB
JavaScript
Raw Normal View History

2025-05-29 23:45:44 +08:00
export const MESSAGETYPES = {
2025-06-04 16:26:07 +08:00
ShootSyncMeArrowID: parseInt("0x789b6b0d"), // 2023451405
ShootSyncMePracticeID: parseInt("0xD88AE05E"), // 3632980062
WaitForAllReady: parseInt("0x615C13BE"), // 1633424318
AllReady: parseInt("0x1CCB49FD"), // 483084797
2025-06-09 01:17:18 +08:00
MeleeAllReady: parseInt("0x37132BD5"), // 924003285
2025-06-04 16:26:07 +08:00
ShootResult: parseInt("0xAA0795E2"), // 2852623842
CurrentRoundEnded: parseInt("0x3E2CE041"), // 1043128385
ToSomeoneShoot: parseInt("0x077ACD1A"), // 125488410
SomeGuyIsReady: parseInt("0xAEE8C236"), // 2934489654
MatchOver: parseInt("0xB7815EEF"), // 3078708975
2025-06-22 15:04:10 +08:00
StartCount: parseInt("0xD7B0DD2F"), // 3618692399
2025-06-26 22:54:17 +08:00
FinalShoot: parseInt("0x5953C8A1"), // 1498663073
2025-06-08 20:59:41 +08:00
RoundPoint: 4061248646,
2025-06-13 14:05:30 +08:00
UserEnterRoom: 2133805521,
UserExitRoom: 3896523333,
2025-06-16 00:30:56 +08:00
RoomDestroy: 3617539277,
2025-06-17 21:34:41 +08:00
SomeoneComplete: 2921416944,
HalfTimeOver: 388606440,
2025-07-03 21:13:55 +08:00
BackToGame: 1899960424,
2025-07-06 00:42:10 +08:00
FinalShootResult: 3813452544,
2025-07-12 17:12:24 +08:00
PaySuccess: 3793388244,
2025-06-17 16:02:29 +08:00
};
2025-06-26 23:41:23 +08:00
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
2025-06-17 16:02:29 +08:00
export const getMessageTypeName = (id) => {
for (let key in MESSAGETYPES) {
if (MESSAGETYPES[key] === id) {
return key;
}
}
return null;
2025-06-04 16:26:07 +08:00
};
export const roundsName = {
0: "一",
1: "一",
2: "二",
3: "三",
4: "四",
5: "五",
2025-05-29 23:45:44 +08:00
};
2025-06-26 13:41:40 +08:00
export const meleeAvatarColors = [
"#364469",
"#692735",
"#934B4B",
"#A98B69",
"#8268A2",
"#9C538F",
"#6870BB",
"#4B8593",
"#9BA969",
"#DCCE6D",
];
2025-07-01 00:25:17 +08:00
export const orderStatusNames = {
1: "待付款",
2: "已付款",
3: "已发货",
4: "已完成",
5: "已关闭",
6: "申请退款",
7: "退款中",
8: "已退款",
9: "拒绝退款",
};
2025-07-05 19:23:38 +08:00
export const directionAdjusts = {
AdjustLowerRight: "向右下方调瞄",
AdjustDown: "向下方调瞄",
AdjustLowerLeft: "向左下方调瞄",
AdjustLeft: "向左侧调瞄",
AdjustUpperLeft: "向左上侧调瞄",
AdjustUp: "向上方调瞄",
AdjustUpperRight: "向右上方调瞄",
AdjustRight: "向右侧调瞄",
};