Documentation ¶
Index ¶
Constants ¶
View Source
const (
WorldReserveTimeout = 30 // 秒
)
Variables ¶
View Source
var Module = fx.Provide( func( l *zap.Logger, agParams agonesfx.SDKParams, setting rfx.RoomSettingParams, mqParams mfx.MessageQueueParams, ) (out sfx.ZinxServiceResult, err error) { if svc, e := NewService( l, mqParams.MessageQueue, agParams.SDK, setting, ); e != nil { err = e } else { out.ZinxService = svc } return }, )
Functions ¶
This section is empty.
Types ¶
type Agones ¶
type Agones struct {
// contains filtered or unexported fields
}
func (*Agones) CheckAndDeleteReserve ¶
func (*Agones) DeletePlayer ¶
type RoomMgr ¶
type RoomMgr struct {
// contains filtered or unexported fields
}
func (*RoomMgr) LoadOrCreateRoom ¶
func (*RoomMgr) SetCanShutdown ¶
func (rm *RoomMgr) SetCanShutdown()
type Service ¶
type Service struct { znet.BaseRouter // contains filtered or unexported fields }
func NewService ¶
func NewService( l *zap.Logger, mq miface.MessageQueue, agones aiface.IAgones, setting rfx.RoomSettingParams, ) (result *Service, err error)
func (*Service) RegisterWithServer ¶
func (s *Service) RegisterWithServer(server siface.IZinxServer)
Click to show internal directories.
Click to hide internal directories.