Documentation
¶
Index ¶
- type EnergyModel
- func (p *EnergyModel) AddCurEnergy(userId int64, addValue float32) error
- func (p *EnergyModel) AddEnergyLimit(userId int64, limitAddValue float32) error
- func (p *EnergyModel) ClearUserCache(userId int64)
- func (p *EnergyModel) GetUserEnergyData(userId int64) (*dbData.Energy, error)
- func (p *EnergyModel) OnEnterGame(userId int64)
- func (p *EnergyModel) OnInit() error
- func (p *EnergyModel) OnTick(utc time.Time)
- func (p *EnergyModel) OnUserGetItem(userId int64, formSerType proto.SceneServiceSubType, ...) error
- func (p *EnergyModel) Secondly(utc time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnergyModel ¶
type EnergyModel struct { module_base.ModuleBase // contains filtered or unexported fields }
func GetEnergyModel ¶
func GetEnergyModel() (*EnergyModel, error)
func NewEnergyModel ¶
func NewEnergyModel() *EnergyModel
func (*EnergyModel) AddCurEnergy ¶
func (p *EnergyModel) AddCurEnergy(userId int64, addValue float32) error
func (*EnergyModel) AddEnergyLimit ¶
func (p *EnergyModel) AddEnergyLimit(userId int64, limitAddValue float32) error
func (*EnergyModel) ClearUserCache ¶
func (p *EnergyModel) ClearUserCache(userId int64)
func (*EnergyModel) GetUserEnergyData ¶
func (p *EnergyModel) GetUserEnergyData(userId int64) (*dbData.Energy, error)
func (*EnergyModel) OnEnterGame ¶
func (p *EnergyModel) OnEnterGame(userId int64)
func (*EnergyModel) OnInit ¶
func (p *EnergyModel) OnInit() error
func (*EnergyModel) OnTick ¶
func (p *EnergyModel) OnTick(utc time.Time)
func (*EnergyModel) OnUserGetItem ¶
func (p *EnergyModel) OnUserGetItem( userId int64, formSerType proto.SceneServiceSubType, items []base_data.GrpcItemBaseInfo, ) error
func (*EnergyModel) Secondly ¶
func (p *EnergyModel) Secondly(utc time.Time)
Click to show internal directories.
Click to hide internal directories.