印度包网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

1 year ago
syntax = "proto3";
package pb;
import "game.proto";
option go_package = "../../pb";
enum CrashProtocol{
CrashInvalid = 0;
// 小火箭协议
CrashCashOutReq = 1001; // 退出请求
CrashCashOutResp = 1002; // 退出返回
CrashFlyingStartResp = 1004; // 游戏阶段转换协议/开始飞行
CrashOtherCashOutResp = 1006; // 其他人退出广播 CrashMsgOtherCashOutResp
CrashAutoCashoutReq = 1007; // 自动下车请求 CrashMsgAutoCashoutReq
CrashAutoCashoutResp = 1008; // 自动下车返回 GameCommonResp
}
message CrashMsgTableInfoResp{
GameCommonTableInfo TableInfo = 1;
int64 AutoCashOut = 2; // 玩家设置的自动退出倍率(倍率扩大100倍)
int64 Multiple = 3; // 如果是飞行状态,会有当前倍率
}
// 游戏开始
message CrashMsgGameStartResp{
int64 TimeLeft = 1; // 剩余时间
}
// 飞行通知
message CrashMsgGameFlyResp{
}
// 游戏结算
message CrashMsgGameSettleResp{
int64 TimeLeft = 1; // 剩余时间
int64 Result = 2; // 本局结果
int64 SettleAmount = 3; // 玩家自己输赢
}
// 退出返回
message CrashMsgOtherCashOutResp{
uint32 UID = 1;
int64 ODD = 2; // 退出时的倍率(扩大了100倍)
string Nick = 3;
int64 Amount = 4; // 其他人退出时的收益
}
// CrashMsgAutoCashoutReq 请求自动下车
message CrashMsgAutoCashoutReq{
int64 ODD = 1; // 设置下车的倍数(扩大100倍)
}