|
| override string | ToString () |
| |
| | SubmarineInfo () |
| |
| | SubmarineInfo (string filePath, string hash="", XElement element=null, bool tryLoad=true) |
| |
| | SubmarineInfo (Submarine sub) |
| |
| | SubmarineInfo (SubmarineInfo original) |
| |
| void | Reload () |
| |
| void | Dispose () |
| |
| bool | IsVanillaSubmarine () |
| |
| void | StartHashDocTask (XDocument doc) |
| |
| bool | HasTag (SubmarineTag tag) |
| |
| void | AddTag (SubmarineTag tag) |
| |
| void | RemoveTag (SubmarineTag tag) |
| |
| void | CheckSubsLeftBehind (XElement element=null) |
| |
| bool | IsCrushDepthDefinedInStructures (out float realWorldCrushDepth) |
| | Calculated from SubmarineElement. Can be used when the sub hasn't been loaded and we can't access Submarine.RealWorldCrushDepth. More...
|
| |
| void | AddOutpostNPCIdentifierOrTag (Character npc, Identifier idOrTag) |
| |
| void | SaveAs (string filePath, System.IO.MemoryStream previewImage=null) |
| |
| int | GetPrice (Location location=null, ImmutableHashSet< Character > characterList=null) |
| |
| void | CreatePreviewWindow (GUIComponent parent) |
| |
| void | CreateSpecsWindow (GUIListBox parent, GUIFont font, bool includeTitle=true, bool includeClass=true, bool includeDescription=false, bool includeCrushDepth=false) |
| |
| readonly record struct | PendingSubInfo (SubmarineInfo PendingSub=null, bool StructuresDefineRealWorldCrushDepth=false, float RealWorldCrushDepth=Level.DefaultRealWorldCrushDepth) |
| |
|
| static IEnumerable< SubmarineInfo > | SavedSubmarines [get] |
| |
| SubmarineTag | Tags [get] |
| |
| int | Tier [get, set] |
| |
| int | EqualityCheckVal [get] |
| | A random int that gets assigned when saving the sub. Used in mp campaign to verify that sub files match More...
|
| |
| string | Name [get, set] |
| |
| LocalizedString | DisplayName [get, set] |
| |
| LocalizedString | Description [get, set] |
| |
| int | Price [get, set] |
| |
| bool | InitialSuppliesSpawned [get, set] |
| |
| bool | NoItems [get, set] |
| |
| bool | LowFuel [get, set] |
| | Note: Refreshed for loaded submarines when they are saved, when they are loaded, and on round end. If you need to refresh it, please use Submarine.CheckFuel() method! More...
|
| |
| Version | GameVersion [get, set] |
| |
| SubmarineType | Type [get, set] |
| |
| bool | IsManuallyOutfitted [get, set] |
| |
| OutpostModuleInfo | OutpostModuleInfo [get, set] |
| |
| BeaconStationInfo | BeaconStationInfo [get, set] |
| |
| WreckInfo | WreckInfo [get, set] |
| |
| ExtraSubmarineInfo | GetExtraSubmarineInfo [get] |
| |
| bool | IsOutpost [get] |
| |
| bool | IsWreck [get] |
| |
| bool | IsBeacon [get] |
| |
| bool | IsPlayer [get] |
| |
| bool | IsRuin [get] |
| |
| bool | IsCampaignCompatible [get] |
| |
| bool | IsCampaignCompatibleIgnoreClass [get] |
| |
| bool | AllowPreviewImage [get] |
| |
| Md5Hash | MD5Hash [get] |
| |
| bool | CalculatingHash [get] |
| |
| Vector2 | Dimensions [get] |
| |
| int | CargoCapacity [get] |
| |
| string | FilePath [get, set] |
| |
| XElement | SubmarineElement [get] |
| |
| bool | IsFileCorrupted [get] |
| |
| bool | RequiredContentPackagesInstalled [get, set] |
| |
| bool | SubsLeftBehind [get] |
| |
| bool | LeftBehindSubDockingPortOccupied [get] |
| |
◆ CrewExperienceLevel
◆ SubmarineInfo() [1/4]
| Barotrauma.SubmarineInfo.SubmarineInfo |
( |
| ) |
|
◆ SubmarineInfo() [2/4]
| Barotrauma.SubmarineInfo.SubmarineInfo |
( |
string |
filePath, |
|
|
string |
hash = "", |
|
|
XElement |
element = null, |
|
|
bool |
tryLoad = true |
|
) |
| |
◆ SubmarineInfo() [3/4]
| Barotrauma.SubmarineInfo.SubmarineInfo |
( |
Submarine |
sub | ) |
|
◆ SubmarineInfo() [4/4]
◆ AddOutpostNPCIdentifierOrTag()
| void Barotrauma.SubmarineInfo.AddOutpostNPCIdentifierOrTag |
( |
Character |
npc, |
|
|
Identifier |
idOrTag |
|
) |
| |
◆ AddTag()
◆ AddToSavedSubs()
| static void Barotrauma.SubmarineInfo.AddToSavedSubs |
( |
SubmarineInfo |
subInfo | ) |
|
|
static |
◆ CheckSubsLeftBehind()
| void Barotrauma.SubmarineInfo.CheckSubsLeftBehind |
( |
XElement |
element = null | ) |
|
◆ CreatePreviewWindow()
| void Barotrauma.SubmarineInfo.CreatePreviewWindow |
( |
GUIComponent |
parent | ) |
|
◆ CreateSpecsWindow()
| void Barotrauma.SubmarineInfo.CreateSpecsWindow |
( |
GUIListBox |
parent, |
|
|
GUIFont |
font, |
|
|
bool |
includeTitle = true, |
|
|
bool |
includeClass = true, |
|
|
bool |
includeDescription = false, |
|
|
bool |
includeCrushDepth = false |
|
) |
| |
◆ Dispose()
| void Barotrauma.SubmarineInfo.Dispose |
( |
| ) |
|
◆ GetDefaultTier()
| static int Barotrauma.SubmarineInfo.GetDefaultTier |
( |
int |
price | ) |
|
|
static |
◆ GetPrice()
| int Barotrauma.SubmarineInfo.GetPrice |
( |
Location |
location = null, |
|
|
ImmutableHashSet< Character > |
characterList = null |
|
) |
| |
◆ GetSubCrushDepth()
◆ HasTag()
◆ IsCrushDepthDefinedInStructures()
| bool Barotrauma.SubmarineInfo.IsCrushDepthDefinedInStructures |
( |
out float |
realWorldCrushDepth | ) |
|
◆ IsVanillaSubmarine()
| bool Barotrauma.SubmarineInfo.IsVanillaSubmarine |
( |
| ) |
|
◆ OpenFile() [1/2]
| static XDocument Barotrauma.SubmarineInfo.OpenFile |
( |
string |
file | ) |
|
|
static |
◆ OpenFile() [2/2]
| static XDocument Barotrauma.SubmarineInfo.OpenFile |
( |
string |
file, |
|
|
out Exception |
exception |
|
) |
| |
|
static |
◆ PendingSubInfo()
◆ RefreshSavedSub()
| static void Barotrauma.SubmarineInfo.RefreshSavedSub |
( |
string |
filePath | ) |
|
|
static |
◆ RefreshSavedSubs()
| static void Barotrauma.SubmarineInfo.RefreshSavedSubs |
( |
| ) |
|
|
static |
◆ Reload()
| void Barotrauma.SubmarineInfo.Reload |
( |
| ) |
|
◆ RemoveSavedSub()
| static void Barotrauma.SubmarineInfo.RemoveSavedSub |
( |
string |
filePath | ) |
|
|
static |
◆ RemoveTag()
◆ SaveAs()
| void Barotrauma.SubmarineInfo.SaveAs |
( |
string |
filePath, |
|
|
System.IO.MemoryStream |
previewImage = null |
|
) |
| |
◆ StartHashDocTask()
| void Barotrauma.SubmarineInfo.StartHashDocTask |
( |
XDocument |
doc | ) |
|
◆ ToString()
| override string Barotrauma.SubmarineInfo.ToString |
( |
| ) |
|
◆ BlockedDockingPortIDs
| readonly List<ushort> Barotrauma.SubmarineInfo.BlockedDockingPortIDs = new List<ushort>() |
◆ HighestTier
| const int Barotrauma.SubmarineInfo.HighestTier = 3 |
|
static |
◆ LastModifiedTime
| readonly DateTime Barotrauma.SubmarineInfo.LastModifiedTime |
◆ LeftBehindDockingPortIDs
| readonly List<ushort> Barotrauma.SubmarineInfo.LeftBehindDockingPortIDs = new List<ushort>() |
◆ OutpostGenerationParams
◆ OutpostNPCs
◆ PreviewImage
| Sprite Barotrauma.SubmarineInfo.PreviewImage |
◆ RecommendedCrewExperience
◆ RecommendedCrewSizeMin
| int Barotrauma.SubmarineInfo.RecommendedCrewSizeMin = 1 |
◆ RequiredContentPackages
| HashSet<string> Barotrauma.SubmarineInfo.RequiredContentPackages = new HashSet<string>() |
◆ SubmarineClass
◆ AllowPreviewImage
| bool Barotrauma.SubmarineInfo.AllowPreviewImage |
|
get |
◆ BeaconStationInfo
◆ CalculatingHash
| bool Barotrauma.SubmarineInfo.CalculatingHash |
|
get |
◆ CargoCapacity
| int Barotrauma.SubmarineInfo.CargoCapacity |
|
get |
◆ Description
◆ Dimensions
| Vector2 Barotrauma.SubmarineInfo.Dimensions |
|
get |
◆ DisplayName
◆ EqualityCheckVal
| int Barotrauma.SubmarineInfo.EqualityCheckVal |
|
get |
◆ FilePath
| string Barotrauma.SubmarineInfo.FilePath |
|
getset |
◆ GameVersion
| Version Barotrauma.SubmarineInfo.GameVersion |
|
getset |
◆ GetExtraSubmarineInfo
◆ InitialSuppliesSpawned
| bool Barotrauma.SubmarineInfo.InitialSuppliesSpawned |
|
getset |
◆ IsBeacon
| bool Barotrauma.SubmarineInfo.IsBeacon |
|
get |
◆ IsCampaignCompatible
| bool Barotrauma.SubmarineInfo.IsCampaignCompatible |
|
get |
◆ IsCampaignCompatibleIgnoreClass
| bool Barotrauma.SubmarineInfo.IsCampaignCompatibleIgnoreClass |
|
get |
◆ IsFileCorrupted
| bool Barotrauma.SubmarineInfo.IsFileCorrupted |
|
get |
◆ IsManuallyOutfitted
| bool Barotrauma.SubmarineInfo.IsManuallyOutfitted |
|
getset |
◆ IsOutpost
| bool Barotrauma.SubmarineInfo.IsOutpost |
|
get |
◆ IsPlayer
| bool Barotrauma.SubmarineInfo.IsPlayer |
|
get |
◆ IsRuin
| bool Barotrauma.SubmarineInfo.IsRuin |
|
get |
◆ IsWreck
| bool Barotrauma.SubmarineInfo.IsWreck |
|
get |
◆ LeftBehindSubDockingPortOccupied
| bool Barotrauma.SubmarineInfo.LeftBehindSubDockingPortOccupied |
|
get |
◆ LowFuel
| bool Barotrauma.SubmarineInfo.LowFuel |
|
getset |
◆ MD5Hash
| Md5Hash Barotrauma.SubmarineInfo.MD5Hash |
|
get |
◆ Name
| string Barotrauma.SubmarineInfo.Name |
|
getset |
◆ NoItems
| bool Barotrauma.SubmarineInfo.NoItems |
|
getset |
◆ OutpostModuleInfo
◆ Price
| int Barotrauma.SubmarineInfo.Price |
|
getset |
◆ RequiredContentPackagesInstalled
| bool Barotrauma.SubmarineInfo.RequiredContentPackagesInstalled |
|
getset |
◆ SavedSubmarines
| IEnumerable<SubmarineInfo> Barotrauma.SubmarineInfo.SavedSubmarines |
|
staticget |
◆ SubmarineElement
| XElement Barotrauma.SubmarineInfo.SubmarineElement |
|
get |
◆ SubsLeftBehind
| bool Barotrauma.SubmarineInfo.SubsLeftBehind |
|
get |
◆ Tags
◆ Tier
| int Barotrauma.SubmarineInfo.Tier |
|
getset |
◆ Type
◆ WreckInfo