viewportcache

package
v0.0.0-...-d7572e3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ViewportCache

type ViewportCache struct {
	RequireSightFromXY [][]*viewportdata.ViewportSight2
	HitRate            hitrate.HitRate
	// contains filtered or unexported fields
}

func New

func New(tr terrainI) *ViewportCache

func (*ViewportCache) ClearAt

func (vpc *ViewportCache) ClearAt(x, y int, xyl findnear.XYLenList)

ClearAt clear sight cache around x,y by xyl

func (*ViewportCache) GetByCache

func (vpc *ViewportCache) GetByCache(x, y int) *viewportdata.ViewportSight2

func (*ViewportCache) Reset

func (vpc *ViewportCache) Reset()

func (*ViewportCache) String

func (vpc *ViewportCache) String() string

Jump to

Keyboard shortcuts

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