Barotrauma Server Doc
Barotrauma.LinkedSubmarinePrefab Class Reference
Inheritance diagram for Barotrauma.LinkedSubmarinePrefab:
Barotrauma.MapEntityPrefab Barotrauma.PrefabWithUintIdentifier Barotrauma.Prefab

Public Member Functions

override void Dispose ()
 
 LinkedSubmarinePrefab (SubmarineInfo subInfo)
 
- Public Member Functions inherited from Barotrauma.MapEntityPrefab
 MapEntityPrefab (ContentXElement element, ContentFile file)
 
string GetItemNameTextId ()
 
string GetHullNameTextId ()
 
IEnumerable< IdentifierGetAllowedUpgrades ()
 
bool HasSubCategory (string subcategory)
 
bool NameMatches (string name, StringComparison comparisonType)
 Check if the name or any of the aliases of this prefab match the given name. More...
 
bool NameMatches (IEnumerable< string > allowedNames, StringComparison comparisonType)
 
bool IsLinkAllowed (MapEntityPrefab target)
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Public Attributes

readonly SubmarineInfo subInfo
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Protected Member Functions

override void CreateInstance (Rectangle rect)
 
- Protected Member Functions inherited from Barotrauma.MapEntityPrefab
 MapEntityPrefab (Identifier identifier)
 
void LoadDescription (ContentXElement element)
 
- Protected Member Functions inherited from Barotrauma.PrefabWithUintIdentifier
 PrefabWithUintIdentifier (ContentFile file, Identifier identifier)
 
 PrefabWithUintIdentifier (ContentFile file, ContentXElement element)
 
- Protected Member Functions inherited from Barotrauma.Prefab
virtual Identifier DetermineIdentifier (XElement element)
 

Properties

override Sprite Sprite [get]
 
override string OriginalName [get]
 
override LocalizedString Name [get]
 
override ImmutableHashSet< IdentifierTags [get]
 
override ImmutableHashSet< IdentifierAllowedLinks [get]
 
override MapEntityCategory Category [get]
 
override ImmutableHashSet< string > Aliases [get]
 
- Properties inherited from Barotrauma.MapEntityPrefab
static IEnumerable< MapEntityPrefabList [get]
 
static MapEntityPrefab Selected [get, set]
 
abstract Sprite Sprite [get]
 
virtual bool CanSpriteFlipX = false [get]
 
virtual bool CanSpriteFlipY = false [get]
 
abstract string OriginalName [get]
 
abstract LocalizedString Name [get]
 
abstract ImmutableHashSet< IdentifierTags [get]
 
abstract ImmutableHashSet< IdentifierAllowedLinks [get]
 Links defined to identifiers. More...
 
abstract MapEntityCategory Category [get]
 
abstract ImmutableHashSet< string > Aliases [get]
 
bool ResizeHorizontal [get, protected set]
 
bool ResizeVertical [get, protected set]
 
LocalizedString Description [get, protected set]
 
string AllowedUpgrades [get, protected set]
 
bool HideInMenus [get, protected set]
 
bool HideInEditors [get, protected set]
 
string Subcategory [get, protected set]
 
bool Linkable [get, protected set]
 
Color SpriteColor [get, protected set]
 
float Scale [get, protected set]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.MapEntityPrefab
static bool SelectPrefab (object selection)
 
static object GetSelected ()
 
static MapEntityPrefab Find (string name, string identifier=null, bool showErrorMessages=true)
 Find a matching map entity prefab More...
 
static MapEntityPrefab Find (string name, Identifier identifier, bool showErrorMessages=true)
 
static MapEntityPrefab GetRandom (Predicate< MapEntityPrefab > predicate, Rand.RandSync sync)
 
static MapEntityPrefab Find (Predicate< MapEntityPrefab > predicate)
 Find a matching map entity prefab More...
 
static MapEntityPrefab FindByName (string name)
 
static MapEntityPrefab FindByIdentifier (Identifier identifier)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 
- Static Protected Attributes inherited from Barotrauma.MapEntityPrefab
static Vector2 placePosition
 

Detailed Description

Definition at line 12 of file LinkedSubmarine.cs.

Constructor & Destructor Documentation

◆ LinkedSubmarinePrefab()

Barotrauma.LinkedSubmarinePrefab.LinkedSubmarinePrefab ( SubmarineInfo  subInfo)

Definition at line 32 of file LinkedSubmarine.cs.

Member Function Documentation

◆ CreateInstance()

override void Barotrauma.LinkedSubmarinePrefab.CreateInstance ( Rectangle  rect)
protectedvirtual

Implements Barotrauma.MapEntityPrefab.

Definition at line 39 of file LinkedSubmarine.cs.

◆ Dispose()

override void Barotrauma.LinkedSubmarinePrefab.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 14 of file LinkedSubmarine.cs.

Member Data Documentation

◆ subInfo

readonly SubmarineInfo Barotrauma.LinkedSubmarinePrefab.subInfo

Definition at line 16 of file LinkedSubmarine.cs.

Property Documentation

◆ Aliases

override ImmutableHashSet<string> Barotrauma.LinkedSubmarinePrefab.Aliases
get

Definition at line 30 of file LinkedSubmarine.cs.

◆ AllowedLinks

override ImmutableHashSet<Identifier> Barotrauma.LinkedSubmarinePrefab.AllowedLinks
get

Definition at line 26 of file LinkedSubmarine.cs.

◆ Category

override MapEntityCategory Barotrauma.LinkedSubmarinePrefab.Category
get

Definition at line 28 of file LinkedSubmarine.cs.

◆ Name

override LocalizedString Barotrauma.LinkedSubmarinePrefab.Name
get

Definition at line 22 of file LinkedSubmarine.cs.

◆ OriginalName

override string Barotrauma.LinkedSubmarinePrefab.OriginalName
get

Definition at line 20 of file LinkedSubmarine.cs.

◆ Sprite

override Sprite Barotrauma.LinkedSubmarinePrefab.Sprite
get

Definition at line 18 of file LinkedSubmarine.cs.

◆ Tags

override ImmutableHashSet<Identifier> Barotrauma.LinkedSubmarinePrefab.Tags
get

Definition at line 24 of file LinkedSubmarine.cs.