Documentation ¶
Index ¶
- Variables
- type Construct
- type GeoConstructType
- type Handler
- func (h *Handler) ConstructsByType(t GeoConstructType) ([]Construct, []Construct)
- 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) NewConstruct(c Construct, refresh bool, constructs *[]Construct, hasLimit 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 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) ConstructsByType ¶ added in v1.7.0
func (h *Handler) ConstructsByType(t GeoConstructType) ([]Construct, []Construct)
func (*Handler) CountByType ¶
func (h *Handler) CountByType(t GeoConstructType) int
func (*Handler) Expiry ¶
func (h *Handler) Expiry(t GeoConstructType) int
func (*Handler) NewConstruct ¶ added in v1.7.0
func (*Handler) NewNoLimitCons ¶
Click to show internal directories.
Click to hide internal directories.