娃娃机配置更新
This commit is contained in:
parent
c4d58262de
commit
27eb944329
Binary file not shown.
|
@ -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.
BIN
data/DB_Task.dat
BIN
data/DB_Task.dat
Binary file not shown.
|
@ -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.
Loading…
Reference in New Issue