|
static IEnumerable< MapEntityPrefab > | List [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< Identifier > | Tags [get] |
|
ImmutableHashSet< Identifier > | AllowedLinks [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] |
|
UInt32 | UintIdentifier [get, set] |
|
ContentPackage? | ContentPackage [get] |
|
ContentPath | FilePath [get] |
|
◆ MapEntityPrefab() [1/2]
Barotrauma.MapEntityPrefab.MapEntityPrefab |
( |
Identifier | identifier | ) |
|
|
protected |
◆ MapEntityPrefab() [2/2]
◆ CreateInstance()
void Barotrauma.MapEntityPrefab.CreateInstance |
( |
Rectangle | rect | ) |
|
|
abstractprotected |
◆ Find() [1/3]
Find a matching map entity prefab.
- Parameters
-
predicate | A predicate that returns true on the desired prefab. |
◆ Find() [2/3]
◆ Find() [3/3]
static MapEntityPrefab Barotrauma.MapEntityPrefab.Find |
( |
string | name, |
|
|
string | identifier = null, |
|
|
bool | showErrorMessages = true ) |
|
static |
Find a matching map entity prefab.
- Parameters
-
name | The name of the item (can be omitted when searching based on identifier) |
identifier | The identifier of the item (if null, the identifier is ignored and the search is done only based on the name) |
◆ FindByIdentifier()
◆ FindByName()
static MapEntityPrefab Barotrauma.MapEntityPrefab.FindByName |
( |
string | name | ) |
|
|
static |
◆ GetAllowedUpgrades()
IEnumerable< Identifier > Barotrauma.MapEntityPrefab.GetAllowedUpgrades |
( |
| ) |
|
◆ GetHullNameTextId()
string Barotrauma.MapEntityPrefab.GetHullNameTextId |
( |
| ) |
|
◆ GetItemNameTextId()
string Barotrauma.MapEntityPrefab.GetItemNameTextId |
( |
| ) |
|
◆ GetRandom()
◆ GetSelected()
static object Barotrauma.MapEntityPrefab.GetSelected |
( |
| ) |
|
|
static |
◆ HasSubCategory()
bool Barotrauma.MapEntityPrefab.HasSubCategory |
( |
string | subcategory | ) |
|
◆ IsLinkAllowed()
◆ LoadDescription()
◆ NameMatches() [1/2]
bool Barotrauma.MapEntityPrefab.NameMatches |
( |
IEnumerable< string > | allowedNames, |
|
|
StringComparison | comparisonType ) |
◆ NameMatches() [2/2]
bool Barotrauma.MapEntityPrefab.NameMatches |
( |
string | name, |
|
|
StringComparison | comparisonType ) |
Check if the name or any of the aliases of this prefab match the given name.
◆ SelectPrefab()
static bool Barotrauma.MapEntityPrefab.SelectPrefab |
( |
object | selection | ) |
|
|
static |
◆ placePosition
Vector2 Barotrauma.MapEntityPrefab.placePosition |
|
staticprotected |
◆ Aliases
ImmutableHashSet<string> Barotrauma.MapEntityPrefab.Aliases |
|
getabstract |
◆ AllowedLinks
ImmutableHashSet<Identifier> Barotrauma.MapEntityPrefab.AllowedLinks |
|
getabstract |
Links defined to identifiers.
◆ AllowedUpgrades
string Barotrauma.MapEntityPrefab.AllowedUpgrades |
|
getprotected set |
◆ CanSpriteFlipX
virtual bool Barotrauma.MapEntityPrefab.CanSpriteFlipX = false |
|
get |
◆ CanSpriteFlipY
virtual bool Barotrauma.MapEntityPrefab.CanSpriteFlipY = false |
|
get |
◆ Category
◆ Description
◆ HideInEditors
bool Barotrauma.MapEntityPrefab.HideInEditors |
|
getprotected set |
◆ HideInMenus
bool Barotrauma.MapEntityPrefab.HideInMenus |
|
getprotected set |
◆ Linkable
bool Barotrauma.MapEntityPrefab.Linkable |
|
getprotected set |
◆ List
◆ Name
◆ OriginalName
string Barotrauma.MapEntityPrefab.OriginalName |
|
getabstract |
◆ ResizeHorizontal
bool Barotrauma.MapEntityPrefab.ResizeHorizontal |
|
getprotected set |
◆ ResizeVertical
bool Barotrauma.MapEntityPrefab.ResizeVertical |
|
getprotected set |
◆ Scale
float Barotrauma.MapEntityPrefab.Scale |
|
getprotected set |
◆ Selected
◆ Sprite
Sprite Barotrauma.MapEntityPrefab.Sprite |
|
getabstract |
◆ SpriteColor
Color Barotrauma.MapEntityPrefab.SpriteColor |
|
getprotected set |
◆ Subcategory
string Barotrauma.MapEntityPrefab.Subcategory |
|
getprotected set |
◆ Tags
ImmutableHashSet<Identifier> Barotrauma.MapEntityPrefab.Tags |
|
getabstract |
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/Map/MapEntityPrefab.cs