counter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	C_max_back_days = 3 // 最大找回天数
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	LastTs counter_map_t
	Back   []back_map_t // 找回次数
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter() *Counter

func (*Counter) CheckRecover

func (self *Counter) CheckRecover(id int32) int32

检查恢复

func (*Counter) Init

func (self *Counter) Init(plr IPlayer)

func (*Counter) RefreshRecover

func (self *Counter) RefreshRecover()

登录刷新所有Recover的Count

func (*Counter) ToMsg

func (self *Counter) ToMsg() *PB.CounterData

func (*Counter) ToMsg_BackCount

func (self *Counter) ToMsg_BackCount() map[int32]int32

type IPlayer

type IPlayer interface {
	comp.IPlayer

	GetCounter() *Counter
}

Jump to

Keyboard shortcuts

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