Documentation ¶
Index ¶
- Variables
- type Construct
- type GeoConstructType
- type Handler
- func (h *Handler) Count() int
- func (h *Handler) CountByType(t GeoConstructType) int
- func (h *Handler) Destroy(key int) bool
- func (h *Handler) Expiry(t GeoConstructType) int
- func (h *Handler) Has(key int) bool
- func (h *Handler) New(c Construct, refresh bool)
- func (h *Handler) NewNoLimitCons(c Construct, refresh bool)
- func (h *Handler) Tick()
Constants ¶
This section is empty.
Variables ¶
View Source
var ConstructNameToKey = map[string]GeoConstructType{ "ningguang": GeoConstructNingSkill, "zhongli": GeoConstructZhongliSkill, "traveler_skill": GeoConstructTravellerSkill, "traveler_burst": GeoConstructTravellerBurst, "albedo": GeoConstructAlbedoSkill, "itto": GeoConstructIttoSkill, }
View Source
var ConstructString = [...]string{
"Invalid",
"NingSkill",
"ZhongliSkill",
"TravellerSkill",
"TravellerBurst",
"AlbedoSkill",
"IttoSkill",
}
Functions ¶
This section is empty.
Types ¶
type Construct ¶
type Construct interface { OnDestruct() Key() int Type() GeoConstructType Expiry() int IsLimited() bool Count() int }
type GeoConstructType ¶
type GeoConstructType int
const ( GeoConstructInvalid GeoConstructType = iota GeoConstructNingSkill GeoConstructZhongliSkill GeoConstructTravellerSkill GeoConstructTravellerBurst GeoConstructAlbedoSkill GeoConstructIttoSkill EndGeoConstructType )
func (GeoConstructType) String ¶
func (c GeoConstructType) String() string
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CountByType ¶
func (h *Handler) CountByType(t GeoConstructType) int
func (*Handler) Expiry ¶
func (h *Handler) Expiry(t GeoConstructType) int
func (*Handler) NewNoLimitCons ¶
Click to show internal directories.
Click to hide internal directories.