Documentation ¶
Index ¶
- type ControllerModel
- func (this *ControllerModel) AllServices() (services []data_types.ServiceData)
- func (this *ControllerModel) CloseUserPrivateService(owner int64, subType proto.SceneServiceSubType) error
- func (p *ControllerModel) Daily(utc time.Time)
- func (this *ControllerModel) DestroyService(service data_types.ServiceData)
- func (this *ControllerModel) GetAliveServiceByType(sType proto.ServiceType, sceneSubType proto.SceneServiceSubType, mapId int32, ...) (*data_types.ServiceData, bool)
- func (this *ControllerModel) GetStartingSerByAppId(appId string) (ser *data_types.ServiceData, ok bool)
- func (this *ControllerModel) GetStartingSerByOwner(ownerId int64) (*data_types.ServiceData, bool)
- func (p *ControllerModel) Hourly(utc time.Time)
- func (p *ControllerModel) Minutely(utc time.Time)
- func (p *ControllerModel) OnInit() error
- func (p *ControllerModel) OnStop() error
- func (p *ControllerModel) OnTick(utc time.Time)
- func (this *ControllerModel) PrintAllServices()
- func (this *ControllerModel) RegisterService(ser data_types.ServiceData)
- func (this *ControllerModel) RemoveStartingService(ser data_types.ServiceData)
- func (p *ControllerModel) Secondly(utc time.Time)
- func (this *ControllerModel) StartUserPrivateService(serType proto.ServiceType, subType proto.SceneServiceSubType, mapId int32, ...) (*data_types.ServiceData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerModel ¶
type ControllerModel struct { module_base.ModuleBase // contains filtered or unexported fields }
func GetControllerModel ¶
func GetControllerModel() (*ControllerModel, error)
func NewControllerModel ¶
func NewControllerModel() *ControllerModel
func (*ControllerModel) AllServices ¶
func (this *ControllerModel) AllServices() (services []data_types.ServiceData)
func (*ControllerModel) CloseUserPrivateService ¶
func (this *ControllerModel) CloseUserPrivateService(owner int64, subType proto.SceneServiceSubType) error
关闭私有(家园|副本)
func (*ControllerModel) Daily ¶
func (p *ControllerModel) Daily(utc time.Time)
func (*ControllerModel) DestroyService ¶
func (this *ControllerModel) DestroyService(service data_types.ServiceData)
func (*ControllerModel) GetAliveServiceByType ¶
func (this *ControllerModel) GetAliveServiceByType( sType proto.ServiceType, sceneSubType proto.SceneServiceSubType, mapId int32, ownerId int64, ) (*data_types.ServiceData, bool)
func (*ControllerModel) GetStartingSerByAppId ¶
func (this *ControllerModel) GetStartingSerByAppId(appId string) (ser *data_types.ServiceData, ok bool)
func (*ControllerModel) GetStartingSerByOwner ¶
func (this *ControllerModel) GetStartingSerByOwner(ownerId int64) (*data_types.ServiceData, bool)
func (*ControllerModel) Hourly ¶
func (p *ControllerModel) Hourly(utc time.Time)
func (*ControllerModel) Minutely ¶
func (p *ControllerModel) Minutely(utc time.Time)
func (*ControllerModel) OnInit ¶
func (p *ControllerModel) OnInit() error
func (*ControllerModel) OnStop ¶
func (p *ControllerModel) OnStop() error
func (*ControllerModel) OnTick ¶
func (p *ControllerModel) OnTick(utc time.Time)
func (*ControllerModel) PrintAllServices ¶
func (this *ControllerModel) PrintAllServices()
func (*ControllerModel) RegisterService ¶
func (this *ControllerModel) RegisterService(ser data_types.ServiceData)
func (*ControllerModel) RemoveStartingService ¶
func (this *ControllerModel) RemoveStartingService(ser data_types.ServiceData)
func (*ControllerModel) Secondly ¶
func (p *ControllerModel) Secondly(utc time.Time)
func (*ControllerModel) StartUserPrivateService ¶
func (this *ControllerModel) StartUserPrivateService( serType proto.ServiceType, subType proto.SceneServiceSubType, mapId int32, ownerId int64, ) (*data_types.ServiceData, error)
因为启动需要等待消息回复,外部调用时最好使用 异步调用
Click to show internal directories.
Click to hide internal directories.