Browse Source

1 记录添加了一个字段

dev
MoQingYu 5 months ago
parent
commit
5688aeb2c1
  1. 3
      game-server/game/21Game/app/core/game/game_over.go
  2. 1
      game-server/game/21Game/app/core/protocol/protocol_msg.go
  3. 1
      game-server/game/DZ/app/core/game/game_over.go
  4. 1
      game-server/game/DZ/app/core/protocol/protocol_msg.go

3
game-server/game/21Game/app/core/game/game_over.go

@ -269,6 +269,7 @@ func (rr *Room) OnEventGameSingeConclude(SingleChairID int32) { // 结束-单独
var RecordInfoPlayer protocol.RecordInfoPlayer
RecordInfoPlayer.ChairID = player.ChairId
RecordInfoPlayer.UserNo = player.UserNo
for _, poker := range player.HandPoker {
RecordInfoPlayer.HandPoker = append(RecordInfoPlayer.HandPoker, int32(poker))
}
@ -464,6 +465,7 @@ func (rr *Room) OnEventGameConclude() { // 结束-结算
var RecordInfoPlayer protocol.RecordInfoPlayer
RecordInfoPlayer.ChairID = player.ChairId
RecordInfoPlayer.UserNo = player.UserNo
for _, poker := range player.HandPoker {
RecordInfoPlayer.HandPoker = append(RecordInfoPlayer.HandPoker, int32(poker))
}
@ -668,6 +670,7 @@ func (rr *Room) OnEventGameConcludeBX() { // 结束-保险结算
var RecordInfoPlayer protocol.RecordInfoPlayer
RecordInfoPlayer.ChairID = player.ChairId
RecordInfoPlayer.UserNo = player.UserNo
for _, poker := range player.HandPoker {
RecordInfoPlayer.HandPoker = append(RecordInfoPlayer.HandPoker, int32(poker))
}

1
game-server/game/21Game/app/core/protocol/protocol_msg.go

@ -247,6 +247,7 @@ type Options struct {
type RecordInfoPlayer struct { // 存储的结构显示
ChairID int32 `json:"chairId"` //座位ID
UserNo string `json:"userNo"` //用户ID
HandPoker []int32 `json:"handPoker,omitempty"` // 用户当前手牌
Point []int32 `json:"point,omitempty"` // 当前点数和
PointMax int32 `json:"pointMax"` // 最大点数

1
game-server/game/DZ/app/core/game/game_over.go

@ -303,6 +303,7 @@ func (rr *Room) OnEventGameConclude() { // 结束-结算
var RecordInfoPlayer protocol.RecordInfoPlayer
RecordInfoPlayer.ChairID = player.ChairId
RecordInfoPlayer.UserNo = player.UserNo
for _, poker := range player.HandPoker {
RecordInfoPlayer.HandPoker = append(RecordInfoPlayer.HandPoker, int32(poker))
}

1
game-server/game/DZ/app/core/protocol/protocol_msg.go

@ -221,6 +221,7 @@ type Options struct {
type RecordInfoPlayer struct { // 存储的结构显示
ChairID int32 `json:"chairId"` //座位ID
UserNo string `json:"userNo"` //用户ID
HandPoker []int32 `json:"handPoker,omitempty"` // 用户当前手牌
BestPoker []int32 `json:"bestPoker,omitempty"` // 最佳排列
PokerType int32 `json:"pokerType" ` // 牌类型

Loading…
Cancel
Save