娃娃机配置更新

This commit is contained in:
kxdd 2024-09-04 10:49:16 +08:00
parent c4d58262de
commit 27eb944329
6 changed files with 27 additions and 4 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) {
//销毁房间

Binary file not shown.