construct

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstructCtrl

type ConstructCtrl struct {
	// contains filtered or unexported fields
}

func NewCtrl

func NewCtrl(c *core.Core) *ConstructCtrl

func (*ConstructCtrl) Count

func (s *ConstructCtrl) Count() int

how many of the given

func (*ConstructCtrl) CountByType

func (s *ConstructCtrl) CountByType(t core.GeoConstructType) int

func (*ConstructCtrl) Destroy

func (s *ConstructCtrl) Destroy(key int) bool

destroy key if exist, return true if destroyed

func (*ConstructCtrl) Expiry added in v0.5.5

func (s *ConstructCtrl) Expiry(t core.GeoConstructType) int

func (*ConstructCtrl) Has

func (s *ConstructCtrl) Has(key int) bool

func (*ConstructCtrl) New

func (s *ConstructCtrl) New(c core.Construct, refresh bool)

func (*ConstructCtrl) NewNoLimitCons

func (s *ConstructCtrl) NewNoLimitCons(c core.Construct, refresh bool)

func (*ConstructCtrl) Tick

func (s *ConstructCtrl) Tick()

Jump to

Keyboard shortcuts

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