|
Barotrauma Server Doc
|
Classes | |
| struct | LocationChangeInfo |
Public Member Functions | |
| IEnumerable< int > | GetSelectedMissionIndices () |
| Map (CampaignSettings settings) | |
| Map (CampaignMode campaign, string seed) | |
| Generate a new campaign map from the seed More... | |
| Biome | GetBiome (Vector2 mapPos) |
| Biome | GetBiome (float xPos) |
| void | MoveToNextLocation () |
| void | SetLocation (int index) |
| void | SelectLocation (int index) |
| void | SelectLocation (Location location) |
| void | SelectMission (IEnumerable< int > missionIndices) |
| void | SelectRandomLocation (bool preferUndiscovered) |
| void | ProgressWorld (CampaignMode campaign, CampaignMode.TransitionType transitionType, float roundDuration) |
| void | Discover (Location location, bool checkTalents=true) |
| void | Visit (Location location) |
| void | ClearLocationHistory () |
| int? | GetDiscoveryIndex (Location location) |
| int? | GetVisitIndex (Location location, bool includeLocationsWithoutOutpost=false) |
| bool | IsDiscovered (Location location) |
| bool | IsVisited (Location location) |
| void | 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). More... | |
| void | Save (XElement element) |
| void | Remove () |
Static Public Member Functions | |
| 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. More... | |
| static Map | Load (CampaignMode campaign, XElement element) |
| Load a previously saved map from an xml element More... | |
Public Attributes | |
| bool | AllowDebugTeleport |
| Action< Location, LocationConnection > | OnLocationSelected |
| Action< LocationConnection, IEnumerable< Mission > > | OnMissionsSelected |
| readonly NamedEvent< LocationChangeInfo > | OnLocationChanged = new NamedEvent<LocationChangeInfo>() |
| From -> To More... | |
| Radiation | Radiation |
Properties | |
| int | Width [get] |
| int | Height [get] |
| IReadOnlyList< Location > | EndLocations [get] |
| Location | StartLocation [get] |
| Location | CurrentLocation [get] |
| int | CurrentLocationIndex [get] |
| Location | SelectedLocation [get] |
| int | SelectedLocationIndex [get] |
| LocationConnection | SelectedConnection [get] |
| string | Seed [get] |
| List< Location > | Locations [get] |
| List< LocationConnection > | Connections [get] |
| Barotrauma.Map.Map | ( | CampaignMode | campaign, |
| string | seed | ||
| ) |
| void Barotrauma.Map.Discover | ( | Location | location, |
| bool | checkTalents = true |
||
| ) |
|
static |
| int? Barotrauma.Map.GetVisitIndex | ( | Location | location, |
| bool | includeLocationsWithoutOutpost = false |
||
| ) |
|
static |
| void Barotrauma.Map.LoadState | ( | CampaignMode | campaign, |
| XElement | element, | ||
| bool | showNotifications | ||
| ) |
|
static |
| void Barotrauma.Map.ProgressWorld | ( | CampaignMode | campaign, |
| CampaignMode.TransitionType | transitionType, | ||
| float | roundDuration | ||
| ) |
| void Barotrauma.Map.SelectMission | ( | IEnumerable< int > | missionIndices | ) |
| void Barotrauma.Map.SelectRandomLocation | ( | bool | preferUndiscovered | ) |
| readonly NamedEvent<LocationChangeInfo> Barotrauma.Map.OnLocationChanged = new NamedEvent<LocationChangeInfo>() |
| Action<Location, LocationConnection> Barotrauma.Map.OnLocationSelected |
| Action<LocationConnection, IEnumerable<Mission> > Barotrauma.Map.OnMissionsSelected |
|
get |
|
get |