service_controller_module

package
v0.0.0-...-bd0de05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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)

因为启动需要等待消息回复,外部调用时最好使用 异步调用

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL