Barotrauma Client Doc
Barotrauma.Level.ClusterLocation Struct Reference

Public Member Functions

 ClusterLocation (VoronoiCell cell, GraphEdge edge, bool initializeResourceList=false)
 
Parameters
initializeResourceListList is initialized only when specified, otherwise will be null
More...
 
bool Equals (ClusterLocation anotherLocation)
 
bool Equals (VoronoiCell cell, GraphEdge edge)
 
void InitializeResources ()
 

Properties

VoronoiCell Cell [get]
 
GraphEdge Edge [get]
 
Vector2 EdgeCenter [get]
 
List< ItemResources [get]
 Can be null unless initialized in constructor More...
 

Detailed Description

Constructor & Destructor Documentation

◆ ClusterLocation()

Barotrauma.Level.ClusterLocation.ClusterLocation ( VoronoiCell  cell,
GraphEdge  edge,
bool  initializeResourceList = false 
)

Parameters
initializeResourceListList is initialized only when specified, otherwise will be null

Definition at line 2605 of file BarotraumaShared/SharedSource/Map/Levels/Level.cs.

Member Function Documentation

◆ Equals() [1/2]

bool Barotrauma.Level.ClusterLocation.Equals ( ClusterLocation  anotherLocation)

◆ Equals() [2/2]

bool Barotrauma.Level.ClusterLocation.Equals ( VoronoiCell  cell,
GraphEdge  edge 
)

◆ InitializeResources()

void Barotrauma.Level.ClusterLocation.InitializeResources ( )

Property Documentation

◆ Cell

VoronoiCell Barotrauma.Level.ClusterLocation.Cell
get

◆ Edge

GraphEdge Barotrauma.Level.ClusterLocation.Edge
get

◆ EdgeCenter

Vector2 Barotrauma.Level.ClusterLocation.EdgeCenter
get

◆ Resources

List<Item> Barotrauma.Level.ClusterLocation.Resources
get

Can be null unless initialized in constructor

Definition at line 2602 of file BarotraumaShared/SharedSource/Map/Levels/Level.cs.