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
Click to show internal directories.
Click to hide internal directories.