Barotrauma Client
Loading...
Searching...
No Matches
Barotrauma.CoreEntityPrefab Class Reference
Inheritance diagram for Barotrauma.CoreEntityPrefab:
Barotrauma.MapEntityPrefab Barotrauma.PrefabWithUintIdentifier Barotrauma.Prefab

Public Member Functions

override void Dispose ()
 
- 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.
 
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)
 
void Dispose ()
 

Static Public Member Functions

static void InitCorePrefabs ()
 
- 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.
 
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.
 
static MapEntityPrefab FindByName (string name)
 
static MapEntityPrefab FindByIdentifier (Identifier identifier)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Static Public Attributes

static readonly PrefabCollection< CoreEntityPrefabPrefabs = new PrefabCollection<CoreEntityPrefab>()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Protected Member Functions

override void CreateInstance (Rectangle rect)
 
- Protected Member Functions inherited from Barotrauma.MapEntityPrefab
 MapEntityPrefab (Identifier identifier)
 
void CreateInstance (Rectangle rect)
 
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

static CoreEntityPrefab HullPrefab [get]
 
static CoreEntityPrefab GapPrefab [get]
 
static CoreEntityPrefab WayPointPrefab [get]
 
static CoreEntityPrefab SpawnPointPrefab [get]
 
override Sprite Sprite [get]
 
override string OriginalName [get]
 
override LocalizedString Name [get]
 
override ImmutableHashSet< IdentifierTags = Enumerable.Empty<Identifier>().ToImmutableHashSet() [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]
 
Sprite Sprite [get]
 
virtual bool CanSpriteFlipX = false [get]
 
virtual bool CanSpriteFlipY = false [get]
 
string OriginalName [get]
 
LocalizedString Name [get]
 
ImmutableHashSet< IdentifierTags [get]
 
ImmutableHashSet< IdentifierAllowedLinks [get]
 Links defined to identifiers.
 
MapEntityCategory Category [get]
 
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

- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 
- Static Protected Attributes inherited from Barotrauma.MapEntityPrefab
static Vector2 placePosition
 

Member Function Documentation

◆ CreateInstance()

override void Barotrauma.CoreEntityPrefab.CreateInstance ( Rectangle rect)
protected

◆ Dispose()

override void Barotrauma.CoreEntityPrefab.Dispose ( )

◆ InitCorePrefabs()

static void Barotrauma.CoreEntityPrefab.InitCorePrefabs ( )
static

Member Data Documentation

◆ Prefabs

readonly PrefabCollection<CoreEntityPrefab> Barotrauma.CoreEntityPrefab.Prefabs = new PrefabCollection<CoreEntityPrefab>()
static

Property Documentation

◆ Aliases

override ImmutableHashSet<string> Barotrauma.CoreEntityPrefab.Aliases
get

◆ AllowedLinks

override ImmutableHashSet<Identifier> Barotrauma.CoreEntityPrefab.AllowedLinks
get

◆ Category

override MapEntityCategory Barotrauma.CoreEntityPrefab.Category
get

◆ GapPrefab

CoreEntityPrefab Barotrauma.CoreEntityPrefab.GapPrefab
staticget

◆ HullPrefab

CoreEntityPrefab Barotrauma.CoreEntityPrefab.HullPrefab
staticget

◆ Name

override LocalizedString Barotrauma.CoreEntityPrefab.Name
get

◆ OriginalName

override string Barotrauma.CoreEntityPrefab.OriginalName
get

◆ SpawnPointPrefab

CoreEntityPrefab Barotrauma.CoreEntityPrefab.SpawnPointPrefab
staticget

◆ Sprite

override Sprite Barotrauma.CoreEntityPrefab.Sprite
get

◆ Tags

override ImmutableHashSet<Identifier> Barotrauma.CoreEntityPrefab.Tags = Enumerable.Empty<Identifier>().ToImmutableHashSet()
get

◆ WayPointPrefab

CoreEntityPrefab Barotrauma.CoreEntityPrefab.WayPointPrefab
staticget

The documentation for this class was generated from the following file: