业务逻辑

This commit is contained in:
liuxiaobo 2025-06-09 23:56:25 +08:00
parent 41e4c3f9d3
commit 51ad92a30c
2 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,9 @@
2. 创建房间、加载玩家数据。(doing) 2. 创建房间、加载玩家数据。(doing)
3. 停服时能及时关闭服务。(待验证) 3. 停服时能及时关闭服务。(待验证)
4. 定制消息。(已完成) 4. 定制消息。(已完成)
5. 具体业务实现。(未开始) 5. 具体业务实现。
1. 开始游戏、通知下注、通知下注结束、开骰子、结算。(已实现)
2. 玩家下注。(未开始)
6. 机器人实现。(未开始) 6. 机器人实现。(未开始)
4. 编写match服 4. 编写match服

View File

@ -108,6 +108,11 @@ func (rm *ColorRoom) resetGameData() {
rm.initEndBetAreaMul() rm.initEndBetAreaMul()
rm.ntfOpenThreeDice = &pb.NtfColorOpenThreeDice{} rm.ntfOpenThreeDice = &pb.NtfColorOpenThreeDice{}
rm.jackpotValue = rm.jackpotMgr.GetJackpot() rm.jackpotValue = rm.jackpotMgr.GetJackpot()
// 清理玩家身上数据
for _, user := range rm.users {
user.resetData()
}
} }
// 当前拥有金币 // 当前拥有金币