新版房间1v1对战数据调试完成
This commit is contained in:
@@ -30,12 +30,24 @@ export const MESSAGETYPES = {
|
||||
SomeoneIsReady: 4168086628,
|
||||
};
|
||||
|
||||
export const MESSAGETYPESV2 = {
|
||||
AboutToStart: 1,
|
||||
BattleStart: 2,
|
||||
ToSomeoneShoot: 3,
|
||||
ShootResult: 4,
|
||||
NewRound: 5,
|
||||
BattleEnd: 6,
|
||||
};
|
||||
|
||||
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
||||
|
||||
export const getMessageTypeName = (id) => {
|
||||
for (let key in MESSAGETYPES) {
|
||||
if (MESSAGETYPES[key] === id) return key;
|
||||
}
|
||||
for (let key in MESSAGETYPESV2) {
|
||||
if (MESSAGETYPESV2[key] === id) return key;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user