Third Person Cover Shooter  1.6
CoverShooter.CoverCache Class Reference

Builds and maintains a list of covers near a position. More...

Public Member Functions

void ResetDistance (Vector3 observer)
 Calculates distances of every cover to the given position. More...
 
void Reset (Vector3 observer, float maxDistance, bool detailedPositions=true)
 Finds covers near the position in a given radius. More...
 

Public Attributes

List< CoverItemItems = new List<CoverItem>()
 

Detailed Description

Builds and maintains a list of covers near a position.

Member Function Documentation

◆ Reset()

void CoverShooter.CoverCache.Reset ( Vector3  observer,
float  maxDistance,
bool  detailedPositions = true 
)

Finds covers near the position in a given radius.

Calculates distances and sorts them.

◆ ResetDistance()

void CoverShooter.CoverCache.ResetDistance ( Vector3  observer)

Calculates distances of every cover to the given position.

Sorts covers by distance.

Member Data Documentation

◆ Items

List<CoverItem> CoverShooter.CoverCache.Items = new List<CoverItem>()

The documentation for this class was generated from the following file: