add 推币机协议

This commit is contained in:
sk 2025-01-07 16:00:01 +08:00
parent 97c826b5f8
commit ab6427c18c
3 changed files with 1263 additions and 0 deletions

View File

@ -193,5 +193,9 @@
- 5660~5669
### pushcoin.proto
- 5670~5679
### game.proto(玩家离开)
- 8000~8099

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,103 @@
syntax = "proto3";
package pushcoin;
option go_package = "mongo.games.com/game/protocol/pushcoin";
// 5670~5679
enum PushCoinPacketID {
PACKET_PushCoin_ZERO = 0;//
PACKET_SCPushCoinRoomInfo = 5670; //
PACKET_SCPushCoinRoomState = 5671; //
PACKET_CSPushCoinPlayerOp = 5672; //
PACKET_SCPushCoinPlayerOp = 5673; //
}
//
//PACKET_SCPushCoinRoomInfo
message SCPushCoinRoomInfo {
int32 RoomId = 1; //id
int32 GameId = 2; //id
int32 RoomMode = 3; //
repeated int32 Params = 4; //
int32 State = 5; //
int32 TimeOut = 6; // :
repeated PushCoinPlayerData Players = 7; //
repeated ExchangeInfo ExchangeList = 8; //
repeated DrawInfo DrawList = 9; //
}
message ItemInfo{
int32 ItemId = 1; //id
int32 ItemNum = 2; //
}
message ExchangeInfo{
int32 Id = 1; //id
repeated ItemInfo Cost = 2; //
repeated ItemInfo Gain = 3; //
int32 ShakeTimes = 4; //
}
message DrawInfo{
int32 Id = 1; //id
int32 ItemId = 2; //id
int32 ItemNum = 3; //
int64 Coin = 4; //
}
message PushCoinPlayerData {
string Name = 1; //
int32 SnId = 2; //
int32 Head = 3; //
int32 Sex = 4; //
int64 Coin = 5; //
int32 Flag = 6; // :线(0:线 1:线) :(0: 1:)
repeated string Params = 7; // :ip
int32 VIP = 8;
int32 RoleId = 9; //使id
int64 Level = 10; //
int64 Exp = 11; //
int32 SkinId = 12; //id
int32 ShakeTimes = 13; //
int64 BaseCoin = 14; //()
int64 PowerLine = 15; //
int64 PowerLineMax = 16; //
int64 RefreshTimes = 17; //
}
//
//PACKET_SCPushCoinRoomState
message SCPushCoinRoomState {
int32 State = 1; //
int32 SubState = 2; //
repeated int32 Params = 3; //
}
//
//PACKET_CSPushCoinPlayerOp
message CSPushCoinPlayerOp {
OpCodes OpCode = 1;
repeated int64 OpParam = 2;
}
enum OpCodes {
OP_Zero = 0;
OP_Bet = 1; // []
OP_Gain = 2; // []
OP_Shake = 3; // []
OP_Refresh = 4; // []
OP_Exchange = 5; // [id]
OP_Draw = 6; // [id]
}
enum OpResultCode {
OPRC_Success = 0; //
OPRC_Error = 1; //
}
//PACKET_SCPushCoinPlayerOp
message SCPushCoinPlayerOp {
OpResultCode OpRetCode = 1;
OpCodes OpCode = 2;
ExchangeInfo Exchange = 3; // ,
DrawInfo Draw = 4; //
}