协议更新

This commit is contained in:
ygy 2024-10-22 18:05:09 +08:00
parent b48dc4af18
commit bb0bd8449a
3 changed files with 74 additions and 2 deletions

View File

@ -1,5 +1,6 @@
cd $CCC_CLIENT_DIR/protocol/rank
cd $CCC_CLIENT_DIR/public/protocol/rank
npx pbjs --dependency protobufjs/minimal.js --target static-module --wrap commonjs --out rank.js ./*.proto --path $PUBLIC_DIR/
npx pbts --main --out ./rank.d.ts ./rank.js
cp ./rank.d.ts ./rank.js $CCC_CLIENT_DIR/vietnam/assets/ScriptCore/protocol
cp ./rank.d.ts ./rank.js $CCC_CLIENT_DIR/vietnam/assets/ScriptCore/protocol
rm rank.d.ts rank.js

View File

@ -29,6 +29,10 @@ enum Rank{
PACKET_CSRoomAward = 10014;
PACKET_SCRoomAward = 10015;
PACKET_SCRoomAwardOne = 10016; //
//
PACKET_CSLotteryHistory = 10017;
PACKET_SCLotteryHistory = 10018;
}
//
@ -230,6 +234,8 @@ message UserAward{
string Name = 2; //
repeated Item Awards = 3; //
int64 Ts = 4; //
int64 Price = 5; //
string ImageURL = 6; //
}
//PACKET_SCRoomAward
@ -238,4 +244,28 @@ message SCRoomAward{
int32 Skip = 2; //
int32 Limit = 3; //
int32 Total = 4; //
}
//
// PACKET_CSLotteryHistory
message CSLotteryHistory{}
message LotteryShow {
int32 Tp = 1; //
string Url = 2; //
string ImgUrl = 3; //
}
message LotteryHistory{
int64 Ts = 1; //
int32 Index = 2; //
int32 SnId = 3; // id
string Name = 4; //
repeated Item Award = 5; //
repeated LotteryShow Show = 6; //
}
// PACKET_SCLotteryHistory
message SCLotteryHistory{
repeated LotteryHistory List = 1;
}

View File

@ -79,6 +79,10 @@ enum SPacketID {
PACKET_CSPermitShop = 2925; //
PACKET_SCPermitShop = 2956; //
PACKET_CSLotteryInfo = 2926; //
PACKET_SCLotteryInfo = 2927; //
PACKET_NotifyLotteryAward = 2928; //
}
//
@ -498,4 +502,41 @@ message SCPermitShop{
string Name = 2; //
int32 Consume = 3; // 1 2
int64 price = 4; //
}
//
//PACKET_CSLotteryInfo
message CSLotteryInfo{
}
message LotteryInfo {
int64 Id = 1; // id
int64 StartTs = 2; //
int64 EndTs = 3; //
int64 WinTs = 4; //
int64 RemainCode = 5; //
int64 TotalCode = 6; //
repeated PropInfo Award = 7; //
int32 State = 8; // 1 2 3
string WinCode = 9; //
int32 SnId = 10; // id
string Name = 11; //
int32 Index = 12; //
int64 Price = 13; //
int32 NeedRoomCard = 14; //
string ImageURL = 15; //
//
int64 CostRoomCard = 16; //
repeated string Codes = 17; //
}
//PACKET_SCLotteryInfo
message SCLotteryInfo{
repeated LotteryInfo Info = 1; //
}
//
//PACKET_NotifyLotteryAward
message NotifyLotteryAward{
LotteryInfo Info = 1; //
}