game2006go/server/nftserver/mt/LoginCluster.go
aozhiwei bc4e93b5c4 1
2024-06-03 17:00:56 +08:00

35 lines
610 B
Go

package mt
import (
"f5"
"mtb"
)
type LoginCluster struct {
mtb.LoginCluster
}
type LoginClusterTable struct {
f5.IdMetaTable[LoginCluster]
selfConf *LoginCluster
}
func (this *LoginCluster) Init1() {
}
func (this *LoginClusterTable) GetListenPort() int32 {
return this.selfConf.GetListenPort()
}
func (this *LoginClusterTable) GetHttpListenPort() int32 {
return this.selfConf.GetHttpListenPort()
}
func (this *LoginClusterTable) PostInit1() {
this.selfConf = this.GetById(int64(f5.GetApp().GetInstanceId()))
if this.selfConf == nil {
panic("loginserver集群无法读取本服配置")
}
}