user_energy_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: 19 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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