Compare commits

..

2 Commits

Author SHA1 Message Date
kxdd 9cdc0f24c7 娃娃机配置更新 2024-09-04 10:49:37 +08:00
kxdd 27eb944329 娃娃机配置更新 2024-09-04 10:49:16 +08:00
7 changed files with 28 additions and 5 deletions

Binary file not shown.

View File

@ -6674,7 +6674,7 @@
0
],
"OtherIntParams": [
1
0
],
"RobotNumRng": [
0
@ -6707,7 +6707,7 @@
0
],
"OtherIntParams": [
1
0
],
"RobotNumRng": [
0
@ -6740,7 +6740,7 @@
0
],
"OtherIntParams": [
2
1
],
"RobotNumRng": [
0
@ -6773,7 +6773,7 @@
0
],
"OtherIntParams": [
2
1
],
"RobotNumRng": [
0

Binary file not shown.

Binary file not shown.

View File

@ -102,12 +102,35 @@ func (this *SceneEx) BroadcastPlayerLeave(p *base.Player, reason int) {
// 玩家进入事件
func (this *SceneEx) OnPlayerEnter(p *base.Player, reason int) {
this.BroadcastPlayerEnter(p, reason)
machineId := this.GetDBGameFree().GetId() % 6080000
machineInfo := this.GetMachineServerInfo(machineId, p.Platform)
if machineInfo == nil {
return
}
if this.GetPlayerNum() > 0 {
// 发送http Get请求 打开直播间流
}
}
// 玩家离开事件
func (this *SceneEx) OnPlayerLeave(p *base.Player, reason int) {
this.delPlayer(p)
this.BroadcastPlayerLeave(p, reason)
machineId := this.GetDBGameFree().GetId() % 6080000
machineInfo := this.GetMachineServerInfo(machineId, p.Platform)
if machineInfo == nil {
return
}
if this.GetPlayerNum() <= 0 {
// 发送http Get请求 关闭直播间流
}
}
func (this *SceneEx) SceneDestroy(force bool) {
//销毁房间

2
public

@ -1 +1 @@
Subproject commit fd8bef907ea15489504529da70f72038444b54e0
Subproject commit 00b9fce886af5b6a926aa804d3cad33be9ea0793

Binary file not shown.