|
static bool | LocationOrConnectionWithinDistance (Location startLocation, int maxDistance, Func< Location, bool > criteria, Func< LocationConnection, bool > connectionCriteria=null) |
|
static int | GetDistanceToClosestLocationOrConnection (Location startLocation, int maxDistance, Func< Location, bool > criteria, Func< LocationConnection, bool > connectionCriteria=null) |
| Get the shortest distance from the start location to another location that satisfies the specified criteria.
|
|
static Map | Load (CampaignMode campaign, XElement element) |
| Load a previously saved map from an xml element.
|
|
◆ Map() [1/2]
Barotrauma.Map.Map |
( |
CampaignSettings | settings | ) |
|
◆ Map() [2/2]
Generate a new campaign map from the seed.
◆ ClearLocationHistory()
void Barotrauma.Map.ClearLocationHistory |
( |
| ) |
|
◆ Discover()
void Barotrauma.Map.Discover |
( |
Location | location, |
|
|
bool | checkTalents = true ) |
◆ GetBiome() [1/2]
Biome Barotrauma.Map.GetBiome |
( |
float | xPos | ) |
|
◆ GetBiome() [2/2]
◆ GetDiscoveryIndex()
int? Barotrauma.Map.GetDiscoveryIndex |
( |
Location | location | ) |
|
◆ GetDistanceToClosestLocationOrConnection()
static int Barotrauma.Map.GetDistanceToClosestLocationOrConnection |
( |
Location | startLocation, |
|
|
int | maxDistance, |
|
|
Func< Location, bool > | criteria, |
|
|
Func< LocationConnection, bool > | connectionCriteria = null ) |
|
static |
Get the shortest distance from the start location to another location that satisfies the specified criteria.
- Returns
- The distance to a matching location, or int.MaxValue if none are found.
◆ GetSelectedMissionIndices()
IEnumerable< int > Barotrauma.Map.GetSelectedMissionIndices |
( |
| ) |
|
◆ GetVisitIndex()
int? Barotrauma.Map.GetVisitIndex |
( |
Location | location, |
|
|
bool | includeLocationsWithoutOutpost = false ) |
◆ IsDiscovered()
bool Barotrauma.Map.IsDiscovered |
( |
Location | location | ) |
|
◆ IsVisited()
bool Barotrauma.Map.IsVisited |
( |
Location | location | ) |
|
◆ Load()
Load a previously saved map from an xml element.
◆ LoadState()
void Barotrauma.Map.LoadState |
( |
CampaignMode | campaign, |
|
|
XElement | element, |
|
|
bool | showNotifications ) |
Load the state of an existing map from xml (current state of locations, where the crew is now, etc).
◆ LocationOrConnectionWithinDistance()
static bool Barotrauma.Map.LocationOrConnectionWithinDistance |
( |
Location | startLocation, |
|
|
int | maxDistance, |
|
|
Func< Location, bool > | criteria, |
|
|
Func< LocationConnection, bool > | connectionCriteria = null ) |
|
static |
◆ MoveToNextLocation()
void Barotrauma.Map.MoveToNextLocation |
( |
| ) |
|
◆ ProgressWorld()
◆ Remove()
void Barotrauma.Map.Remove |
( |
| ) |
|
◆ Save()
void Barotrauma.Map.Save |
( |
XElement | element | ) |
|
◆ SelectLocation() [1/2]
void Barotrauma.Map.SelectLocation |
( |
int | index | ) |
|
◆ SelectLocation() [2/2]
void Barotrauma.Map.SelectLocation |
( |
Location | location | ) |
|
◆ SelectMission()
void Barotrauma.Map.SelectMission |
( |
IEnumerable< int > | missionIndices | ) |
|
◆ SelectRandomLocation()
void Barotrauma.Map.SelectRandomLocation |
( |
bool | preferUndiscovered | ) |
|
◆ SetLocation()
void Barotrauma.Map.SetLocation |
( |
int | index | ) |
|
◆ Visit()
void Barotrauma.Map.Visit |
( |
Location | location | ) |
|
◆ AllowDebugTeleport
bool Barotrauma.Map.AllowDebugTeleport |
◆ OnLocationChanged
◆ OnLocationSelected
◆ OnMissionsSelected
◆ Radiation
Radiation Barotrauma.Map.Radiation |
◆ Connections
◆ CurrentLocation
◆ CurrentLocationIndex
int Barotrauma.Map.CurrentLocationIndex |
|
get |
◆ EndLocations
IReadOnlyList<Location> Barotrauma.Map.EndLocations |
|
get |
◆ Height
int Barotrauma.Map.Height |
|
get |
◆ Locations
◆ Seed
string Barotrauma.Map.Seed |
|
get |
◆ SelectedConnection
◆ SelectedLocation
Location Barotrauma.Map.SelectedLocation |
|
get |
◆ SelectedLocationIndex
int Barotrauma.Map.SelectedLocationIndex |
|
get |
◆ StartLocation
◆ Width
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/Map/Map/Map.cs