Files
shoot-miniprograms/src/constants.js

37 lines
1023 B
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-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-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
};