Barotrauma Server Doc
Barotrauma.ItemPrefab Class Reference
Inheritance diagram for Barotrauma.ItemPrefab:
Barotrauma.MapEntityPrefab Barotrauma.IImplementsVariants< ItemPrefab > Barotrauma.PrefabWithUintIdentifier Barotrauma.Prefab

Classes

struct  CommonnessInfo
 
struct  FixedQuantityResourceInfo
 

Public Member Functions

int GetMaxStackSize (Inventory inventory)
 
 ItemPrefab (ContentXElement element, ItemFile file)
 
CommonnessInfoGetCommonnessInfo (Level level)
 
float GetTreatmentSuitability (Identifier treatmentIdentifier)
 
PriceInfo GetPriceInfo (Location.StoreInfo store)
 
bool CanBeBoughtFrom (Location.StoreInfo store, out PriceInfo priceInfo)
 
bool CanBeBoughtFrom (Location location)
 
int? GetMinPrice ()
 
ImmutableDictionary< Identifier, PriceInfoGetBuyPricesUnder (int maxCost=0)
 
ImmutableDictionary< Identifier, PriceInfoGetSellPricesOver (int minCost=0, bool sellingImportant=true)
 
bool IsContainerPreferred (Item item, ItemContainer targetContainer, out bool isPreferencesDefined, out bool isSecondary, bool requireConditionRequirement=false, bool checkTransferConditions=false)
 
bool IsContainerPreferred (Item item, Identifier[] identifiersOrTags, out bool isPreferencesDefined, out bool isSecondary)
 
override void Dispose ()
 
void InheritFrom (ItemPrefab parent)
 
ContentPackage GetParentModPackageOrThisPackage ()
 If the base prefab this one is a variant of is defined in a non-vanilla package, returns that non-vanilla package. Otherwise returns the package of this prefab. Can be useful for logging errors that may have been caused by a mod overriding the base item. More...
 
override string ToString ()
 
- 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 Member Functions inherited from Barotrauma.IImplementsVariants< ItemPrefab >
void InheritFrom (T parent)
 

Static Public Member Functions

static Identifier GenerateLegacyIdentifier (string name)
 
static ItemPrefab Find (string name, Identifier identifier)
 
static bool IsContainerPreferred (IEnumerable< Identifier > preferences, ItemContainer c)
 
static bool IsContainerPreferred (IEnumerable< Identifier > preferences, IEnumerable< Identifier > ids)
 
static ItemPrefab GetItemPrefab (string itemNameOrId)
 
- 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

static readonly PrefabCollection< ItemPrefabPrefabs = new PrefabCollection<ItemPrefab>()
 
const float DefaultInteractDistance = 120.0f
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Protected Member Functions

override Identifier DetermineIdentifier (XElement element)
 
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)
 

Properties

Vector2 Size [get]
 
PriceInfo DefaultPrice [get]
 
bool CanBeBought [get]
 
bool CanBeSold [get]
 Any item with a Price element in the definition can be sold everywhere. More...
 
ImmutableArray< Rectangle > Triggers [get]
 Defines areas where the item can be interacted with. If RequireBodyInsideTrigger is set to true, the character has to be within the trigger to interact. If it's set to false, having the cursor within the trigger is enough. More...
 
bool IsOverride [get]
 Is this prefab overriding a prefab in another content package More...
 
ContentXElement ConfigElement [get]
 
ImmutableArray< DeconstructItemDeconstructItems [get]
 
ImmutableDictionary< uint, FabricationRecipeFabricationRecipes [get]
 
float DeconstructTime [get]
 
bool AllowDeconstruct [get]
 
ImmutableArray< PreferredContainerPreferredContainers [get]
 
ImmutableArray< SkillRequirementHintSkillRequirementHints [get]
 
SwappableItem SwappableItem [get]
 
ImmutableDictionary< Identifier, FixedQuantityResourceInfoLevelQuantity [get]
 
override bool CanSpriteFlipX [get]
 
override bool CanSpriteFlipY [get]
 
bool? AllowAsExtraCargo [get]
 Can the item be chosen as extra cargo in multiplayer. If not set, the item is available if it can be bought from outposts in the campaign. More...
 
bool RandomDeconstructionOutput [get]
 
int RandomDeconstructionOutputAmount [get]
 
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]
 
float InteractDistance [get]
 
float InteractPriority [get]
 
bool InteractThroughWalls [get]
 
bool HideConditionBar [get, set]
 
bool HideConditionInTooltip [get, set]
 
bool RequireBodyInsideTrigger [get]
 
bool RequireCursorInsideTrigger [get]
 
bool RequireCampaignInteract [get]
 
bool FocusOnSelected [get]
 
float OffsetOnSelected [get]
 
bool GrabWhenSelected [get, set]
 
float Health [get]
 
bool AllowSellingWhenBroken [get]
 
bool AllowStealingAlways [get]
 
bool Indestructible [get]
 
bool DamagedByExplosions [get]
 
float ExplosionDamageMultiplier [get]
 
float ItemDamageMultiplier [get]
 
bool DamagedByProjectiles [get]
 
bool DamagedByMeleeWeapons [get]
 
bool DamagedByRepairTools [get]
 
bool DamagedByMonsters [get]
 
float ImpactTolerance [get, set]
 
float OnDamagedThreshold [get, set]
 
float SonarSize [get]
 
bool UseInHealthInterface [get]
 
bool DisableItemUsageWhenSelected [get]
 
string CargoContainerIdentifier [get]
 
bool UseContainedSpriteColor [get]
 
bool UseContainedInventoryIconColor [get]
 
float AddedRepairSpeedMultiplier [get]
 
float AddedPickingSpeedMultiplier [get]
 
bool CannotRepairFail [get]
 
string EquipConfirmationText [get, set]
 
bool AllowRotatingInEditor [get, set]
 
bool ShowContentsInTooltip [get]
 
bool CanFlipX [get]
 
bool CanFlipY [get]
 
float MinScale [get]
 
float MaxScale [get]
 
bool IsDangerous [get]
 
int MaxStackSize [get]
 
int MaxStackSizeCharacterInventory [get]
 
int MaxStackSizeHoldableOrWearableInventory [get]
 
bool AllowDroppingOnSwap [get]
 
ImmutableHashSet< IdentifierAllowDroppingOnSwapWith [get]
 
bool DontTransferBetweenSubs [get]
 
bool ShowHealthBar [get]
 
float BotPriority [get]
 
bool ShowNameInHealthBar [get]
 
bool IsAITurretTarget [get]
 
float AITurretPriority [get]
 
float AISlowTurretPriority [get]
 
float AITurretTargetingMaxDistance [get]
 
bool AllowStealingContainedItems [get]
 
Color SignalComponentColor [get]
 
bool DisableCommandMenuWhenSelected [get, set]
 
Identifier VariantOf [get]
 
ItemPrefab ParentPrefab [get, set]
 
- 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]
 
- Properties inherited from Barotrauma.IImplementsVariants< ItemPrefab >
Identifier VariantOf [get]
 
T? ParentPrefab [get, set]
 

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
 

Detailed Description

Definition at line 471 of file ItemPrefab.cs.

Constructor & Destructor Documentation

◆ ItemPrefab()

Barotrauma.ItemPrefab.ItemPrefab ( ContentXElement  element,
ItemFile  file 
)

Definition at line 971 of file ItemPrefab.cs.

Member Function Documentation

◆ CanBeBoughtFrom() [1/2]

bool Barotrauma.ItemPrefab.CanBeBoughtFrom ( Location  location)

Definition at line 1391 of file ItemPrefab.cs.

◆ CanBeBoughtFrom() [2/2]

bool Barotrauma.ItemPrefab.CanBeBoughtFrom ( Location.StoreInfo  store,
out PriceInfo  priceInfo 
)

Definition at line 1382 of file ItemPrefab.cs.

◆ CreateInstance()

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

Implements Barotrauma.MapEntityPrefab.

Definition at line 1554 of file ItemPrefab.cs.

◆ DetermineIdentifier()

override Identifier Barotrauma.ItemPrefab.DetermineIdentifier ( XElement  element)
protectedvirtual

Reimplemented from Barotrauma.Prefab.

Definition at line 951 of file ItemPrefab.cs.

◆ Dispose()

override void Barotrauma.ItemPrefab.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 1559 of file ItemPrefab.cs.

◆ Find()

static ItemPrefab Barotrauma.ItemPrefab.Find ( string  name,
Identifier  identifier 
)
static

Definition at line 1487 of file ItemPrefab.cs.

◆ GenerateLegacyIdentifier()

static Identifier Barotrauma.ItemPrefab.GenerateLegacyIdentifier ( string  name)
static

Definition at line 966 of file ItemPrefab.cs.

◆ GetBuyPricesUnder()

ImmutableDictionary<Identifier, PriceInfo> Barotrauma.ItemPrefab.GetBuyPricesUnder ( int  maxCost = 0)

Definition at line 1438 of file ItemPrefab.cs.

◆ GetCommonnessInfo()

CommonnessInfo? Barotrauma.ItemPrefab.GetCommonnessInfo ( Level  level)

Definition at line 1318 of file ItemPrefab.cs.

◆ GetItemPrefab()

static ItemPrefab Barotrauma.ItemPrefab.GetItemPrefab ( string  itemNameOrId)
static

◆ GetMaxStackSize()

int Barotrauma.ItemPrefab.GetMaxStackSize ( Inventory  inventory)

Definition at line 872 of file ItemPrefab.cs.

◆ GetMinPrice()

int? Barotrauma.ItemPrefab.GetMinPrice ( )

Definition at line 1414 of file ItemPrefab.cs.

◆ GetParentModPackageOrThisPackage()

ContentPackage Barotrauma.ItemPrefab.GetParentModPackageOrThisPackage ( )

If the base prefab this one is a variant of is defined in a non-vanilla package, returns that non-vanilla package. Otherwise returns the package of this prefab. Can be useful for logging errors that may have been caused by a mod overriding the base item.

Definition at line 1632 of file ItemPrefab.cs.

◆ GetPriceInfo()

PriceInfo Barotrauma.ItemPrefab.GetPriceInfo ( Location.StoreInfo  store)

Definition at line 1359 of file ItemPrefab.cs.

◆ GetSellPricesOver()

ImmutableDictionary<Identifier, PriceInfo> Barotrauma.ItemPrefab.GetSellPricesOver ( int  minCost = 0,
bool  sellingImportant = true 
)

Definition at line 1463 of file ItemPrefab.cs.

◆ GetTreatmentSuitability()

float Barotrauma.ItemPrefab.GetTreatmentSuitability ( Identifier  treatmentIdentifier)

Definition at line 1352 of file ItemPrefab.cs.

◆ InheritFrom()

void Barotrauma.ItemPrefab.InheritFrom ( ItemPrefab  parent)

Definition at line 1567 of file ItemPrefab.cs.

◆ IsContainerPreferred() [1/4]

static bool Barotrauma.ItemPrefab.IsContainerPreferred ( IEnumerable< Identifier preferences,
IEnumerable< Identifier ids 
)
static

◆ IsContainerPreferred() [2/4]

static bool Barotrauma.ItemPrefab.IsContainerPreferred ( IEnumerable< Identifier preferences,
ItemContainer  c 
)
static

◆ IsContainerPreferred() [3/4]

bool Barotrauma.ItemPrefab.IsContainerPreferred ( Item  item,
Identifier[]  identifiersOrTags,
out bool  isPreferencesDefined,
out bool  isSecondary 
)

Definition at line 1534 of file ItemPrefab.cs.

◆ IsContainerPreferred() [4/4]

bool Barotrauma.ItemPrefab.IsContainerPreferred ( Item  item,
ItemContainer  targetContainer,
out bool  isPreferencesDefined,
out bool  isSecondary,
bool  requireConditionRequirement = false,
bool  checkTransferConditions = false 
)

Definition at line 1519 of file ItemPrefab.cs.

◆ ToString()

override string Barotrauma.ItemPrefab.ToString ( )

Definition at line 1642 of file ItemPrefab.cs.

Member Data Documentation

◆ DefaultInteractDistance

const float Barotrauma.ItemPrefab.DefaultInteractDistance = 120.0f
static

Definition at line 475 of file ItemPrefab.cs.

◆ Prefabs

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

Definition at line 473 of file ItemPrefab.cs.

Property Documentation

◆ AddedPickingSpeedMultiplier

float Barotrauma.ItemPrefab.AddedPickingSpeedMultiplier
get

Definition at line 809 of file ItemPrefab.cs.

◆ AddedRepairSpeedMultiplier

float Barotrauma.ItemPrefab.AddedRepairSpeedMultiplier
get

Definition at line 802 of file ItemPrefab.cs.

◆ AISlowTurretPriority

float Barotrauma.ItemPrefab.AISlowTurretPriority
get

Definition at line 937 of file ItemPrefab.cs.

◆ AITurretPriority

float Barotrauma.ItemPrefab.AITurretPriority
get

Definition at line 934 of file ItemPrefab.cs.

◆ AITurretTargetingMaxDistance

float Barotrauma.ItemPrefab.AITurretTargetingMaxDistance
get

Definition at line 940 of file ItemPrefab.cs.

◆ Aliases

override ImmutableHashSet<string> Barotrauma.ItemPrefab.Aliases
get

Definition at line 677 of file ItemPrefab.cs.

◆ AllowAsExtraCargo

bool? Barotrauma.ItemPrefab.AllowAsExtraCargo
get

Can the item be chosen as extra cargo in multiplayer. If not set, the item is available if it can be bought from outposts in the campaign.

Definition at line 653 of file ItemPrefab.cs.

◆ AllowDeconstruct

bool Barotrauma.ItemPrefab.AllowDeconstruct
get

Definition at line 512 of file ItemPrefab.cs.

◆ AllowDroppingOnSwap

bool Barotrauma.ItemPrefab.AllowDroppingOnSwap
get

Definition at line 914 of file ItemPrefab.cs.

◆ AllowDroppingOnSwapWith

ImmutableHashSet<Identifier> Barotrauma.ItemPrefab.AllowDroppingOnSwapWith
get

Definition at line 916 of file ItemPrefab.cs.

◆ AllowedLinks

override ImmutableHashSet<Identifier> Barotrauma.ItemPrefab.AllowedLinks
get

Definition at line 671 of file ItemPrefab.cs.

◆ AllowRotatingInEditor

bool Barotrauma.ItemPrefab.AllowRotatingInEditor
getset

Definition at line 826 of file ItemPrefab.cs.

◆ AllowSellingWhenBroken

bool Barotrauma.ItemPrefab.AllowSellingWhenBroken
get

Definition at line 739 of file ItemPrefab.cs.

◆ AllowStealingAlways

bool Barotrauma.ItemPrefab.AllowStealingAlways
get

Definition at line 742 of file ItemPrefab.cs.

◆ AllowStealingContainedItems

bool Barotrauma.ItemPrefab.AllowStealingContainedItems
get

Definition at line 943 of file ItemPrefab.cs.

◆ BotPriority

float Barotrauma.ItemPrefab.BotPriority
get

Definition at line 925 of file ItemPrefab.cs.

◆ CanBeBought

bool Barotrauma.ItemPrefab.CanBeBought
get

Definition at line 483 of file ItemPrefab.cs.

◆ CanBeSold

bool Barotrauma.ItemPrefab.CanBeSold
get

Any item with a Price element in the definition can be sold everywhere.

Definition at line 488 of file ItemPrefab.cs.

◆ CanFlipX

bool Barotrauma.ItemPrefab.CanFlipX
get

Definition at line 832 of file ItemPrefab.cs.

◆ CanFlipY

bool Barotrauma.ItemPrefab.CanFlipY
get

Definition at line 835 of file ItemPrefab.cs.

◆ CannotRepairFail

bool Barotrauma.ItemPrefab.CannotRepairFail
get

Definition at line 816 of file ItemPrefab.cs.

◆ CanSpriteFlipX

override bool Barotrauma.ItemPrefab.CanSpriteFlipX
get

Definition at line 645 of file ItemPrefab.cs.

◆ CanSpriteFlipY

override bool Barotrauma.ItemPrefab.CanSpriteFlipY
get

Definition at line 648 of file ItemPrefab.cs.

◆ CargoContainerIdentifier

string Barotrauma.ItemPrefab.CargoContainerIdentifier
get

Definition at line 793 of file ItemPrefab.cs.

◆ Category

override MapEntityCategory Barotrauma.ItemPrefab.Category
get

Definition at line 674 of file ItemPrefab.cs.

◆ ConfigElement

ContentXElement Barotrauma.ItemPrefab.ConfigElement
get

Definition at line 504 of file ItemPrefab.cs.

◆ DamagedByExplosions

bool Barotrauma.ItemPrefab.DamagedByExplosions
get

Definition at line 748 of file ItemPrefab.cs.

◆ DamagedByMeleeWeapons

bool Barotrauma.ItemPrefab.DamagedByMeleeWeapons
get

Definition at line 760 of file ItemPrefab.cs.

◆ DamagedByMonsters

bool Barotrauma.ItemPrefab.DamagedByMonsters
get

Definition at line 766 of file ItemPrefab.cs.

◆ DamagedByProjectiles

bool Barotrauma.ItemPrefab.DamagedByProjectiles
get

Definition at line 757 of file ItemPrefab.cs.

◆ DamagedByRepairTools

bool Barotrauma.ItemPrefab.DamagedByRepairTools
get

Definition at line 763 of file ItemPrefab.cs.

◆ DeconstructItems

ImmutableArray<DeconstructItem> Barotrauma.ItemPrefab.DeconstructItems
get

Definition at line 506 of file ItemPrefab.cs.

◆ DeconstructTime

float Barotrauma.ItemPrefab.DeconstructTime
get

Definition at line 510 of file ItemPrefab.cs.

◆ DefaultPrice

PriceInfo Barotrauma.ItemPrefab.DefaultPrice
get

Definition at line 481 of file ItemPrefab.cs.

◆ DisableCommandMenuWhenSelected

bool Barotrauma.ItemPrefab.DisableCommandMenuWhenSelected
getset

Definition at line 949 of file ItemPrefab.cs.

◆ DisableItemUsageWhenSelected

bool Barotrauma.ItemPrefab.DisableItemUsageWhenSelected
get

Definition at line 790 of file ItemPrefab.cs.

◆ DontTransferBetweenSubs

bool Barotrauma.ItemPrefab.DontTransferBetweenSubs
get

Definition at line 919 of file ItemPrefab.cs.

◆ EquipConfirmationText

string Barotrauma.ItemPrefab.EquipConfirmationText
getset

Definition at line 823 of file ItemPrefab.cs.

◆ ExplosionDamageMultiplier

float Barotrauma.ItemPrefab.ExplosionDamageMultiplier
get

Definition at line 751 of file ItemPrefab.cs.

◆ FabricationRecipes

ImmutableDictionary<uint, FabricationRecipe> Barotrauma.ItemPrefab.FabricationRecipes
get

Definition at line 508 of file ItemPrefab.cs.

◆ FocusOnSelected

bool Barotrauma.ItemPrefab.FocusOnSelected
get

Definition at line 715 of file ItemPrefab.cs.

◆ GrabWhenSelected

bool Barotrauma.ItemPrefab.GrabWhenSelected
getset

Definition at line 722 of file ItemPrefab.cs.

◆ Health

float Barotrauma.ItemPrefab.Health
get

Definition at line 727 of file ItemPrefab.cs.

◆ HideConditionBar

bool Barotrauma.ItemPrefab.HideConditionBar
getset

Definition at line 691 of file ItemPrefab.cs.

◆ HideConditionInTooltip

bool Barotrauma.ItemPrefab.HideConditionInTooltip
getset

Definition at line 694 of file ItemPrefab.cs.

◆ ImpactTolerance

float Barotrauma.ItemPrefab.ImpactTolerance
getset

Definition at line 770 of file ItemPrefab.cs.

◆ Indestructible

bool Barotrauma.ItemPrefab.Indestructible
get

Definition at line 745 of file ItemPrefab.cs.

◆ InteractDistance

float Barotrauma.ItemPrefab.InteractDistance
get

Definition at line 681 of file ItemPrefab.cs.

◆ InteractPriority

float Barotrauma.ItemPrefab.InteractPriority
get

Definition at line 685 of file ItemPrefab.cs.

◆ InteractThroughWalls

bool Barotrauma.ItemPrefab.InteractThroughWalls
get

Definition at line 688 of file ItemPrefab.cs.

◆ IsAITurretTarget

bool Barotrauma.ItemPrefab.IsAITurretTarget
get

Definition at line 931 of file ItemPrefab.cs.

◆ IsDangerous

bool Barotrauma.ItemPrefab.IsDangerous
get

Definition at line 844 of file ItemPrefab.cs.

◆ IsOverride

bool Barotrauma.ItemPrefab.IsOverride
get

Is this prefab overriding a prefab in another content package

Definition at line 501 of file ItemPrefab.cs.

◆ ItemDamageMultiplier

float Barotrauma.ItemPrefab.ItemDamageMultiplier
get

Definition at line 754 of file ItemPrefab.cs.

◆ LevelQuantity

ImmutableDictionary<Identifier, FixedQuantityResourceInfo> Barotrauma.ItemPrefab.LevelQuantity
get

Definition at line 642 of file ItemPrefab.cs.

◆ MaxScale

float Barotrauma.ItemPrefab.MaxScale
get

Definition at line 841 of file ItemPrefab.cs.

◆ MaxStackSize

int Barotrauma.ItemPrefab.MaxStackSize
get

Definition at line 848 of file ItemPrefab.cs.

◆ MaxStackSizeCharacterInventory

int Barotrauma.ItemPrefab.MaxStackSizeCharacterInventory
get

Definition at line 856 of file ItemPrefab.cs.

◆ MaxStackSizeHoldableOrWearableInventory

int Barotrauma.ItemPrefab.MaxStackSizeHoldableOrWearableInventory
get

Definition at line 866 of file ItemPrefab.cs.

◆ MinScale

float Barotrauma.ItemPrefab.MinScale
get

Definition at line 838 of file ItemPrefab.cs.

◆ Name

override LocalizedString Barotrauma.ItemPrefab.Name
get

Definition at line 665 of file ItemPrefab.cs.

◆ OffsetOnSelected

float Barotrauma.ItemPrefab.OffsetOnSelected
get

Definition at line 719 of file ItemPrefab.cs.

◆ OnDamagedThreshold

float Barotrauma.ItemPrefab.OnDamagedThreshold
getset

Definition at line 777 of file ItemPrefab.cs.

◆ OriginalName

override string Barotrauma.ItemPrefab.OriginalName
get

Definition at line 662 of file ItemPrefab.cs.

◆ ParentPrefab

ItemPrefab Barotrauma.ItemPrefab.ParentPrefab
getset

Definition at line 1565 of file ItemPrefab.cs.

◆ PreferredContainers

ImmutableArray<PreferredContainer> Barotrauma.ItemPrefab.PreferredContainers
get

Definition at line 515 of file ItemPrefab.cs.

◆ RandomDeconstructionOutput

bool Barotrauma.ItemPrefab.RandomDeconstructionOutput
get

Definition at line 655 of file ItemPrefab.cs.

◆ RandomDeconstructionOutputAmount

int Barotrauma.ItemPrefab.RandomDeconstructionOutputAmount
get

Definition at line 657 of file ItemPrefab.cs.

◆ RequireBodyInsideTrigger

bool Barotrauma.ItemPrefab.RequireBodyInsideTrigger
get

Definition at line 699 of file ItemPrefab.cs.

◆ RequireCampaignInteract

bool Barotrauma.ItemPrefab.RequireCampaignInteract
get

Definition at line 707 of file ItemPrefab.cs.

◆ RequireCursorInsideTrigger

bool Barotrauma.ItemPrefab.RequireCursorInsideTrigger
get

Definition at line 703 of file ItemPrefab.cs.

◆ ShowContentsInTooltip

bool Barotrauma.ItemPrefab.ShowContentsInTooltip
get

Definition at line 829 of file ItemPrefab.cs.

◆ ShowHealthBar

bool Barotrauma.ItemPrefab.ShowHealthBar
get

Definition at line 922 of file ItemPrefab.cs.

◆ ShowNameInHealthBar

bool Barotrauma.ItemPrefab.ShowNameInHealthBar
get

Definition at line 928 of file ItemPrefab.cs.

◆ SignalComponentColor

Color Barotrauma.ItemPrefab.SignalComponentColor
get

Definition at line 946 of file ItemPrefab.cs.

◆ Size

Vector2 Barotrauma.ItemPrefab.Size
get

Definition at line 478 of file ItemPrefab.cs.

◆ SkillRequirementHints

ImmutableArray<SkillRequirementHint> Barotrauma.ItemPrefab.SkillRequirementHints
get

Definition at line 517 of file ItemPrefab.cs.

◆ SonarSize

float Barotrauma.ItemPrefab.SonarSize
get

Definition at line 780 of file ItemPrefab.cs.

◆ Sprite

override Sprite Barotrauma.ItemPrefab.Sprite
get

Definition at line 660 of file ItemPrefab.cs.

◆ SwappableItem

SwappableItem Barotrauma.ItemPrefab.SwappableItem
get

Definition at line 519 of file ItemPrefab.cs.

◆ Tags

override ImmutableHashSet<Identifier> Barotrauma.ItemPrefab.Tags
get

Definition at line 668 of file ItemPrefab.cs.

◆ Triggers

ImmutableArray<Rectangle> Barotrauma.ItemPrefab.Triggers
get

Defines areas where the item can be interacted with. If RequireBodyInsideTrigger is set to true, the character has to be within the trigger to interact. If it's set to false, having the cursor within the trigger is enough.

Definition at line 494 of file ItemPrefab.cs.

◆ UseContainedInventoryIconColor

bool Barotrauma.ItemPrefab.UseContainedInventoryIconColor
get

Definition at line 799 of file ItemPrefab.cs.

◆ UseContainedSpriteColor

bool Barotrauma.ItemPrefab.UseContainedSpriteColor
get

Definition at line 796 of file ItemPrefab.cs.

◆ UseInHealthInterface

bool Barotrauma.ItemPrefab.UseInHealthInterface
get

Definition at line 787 of file ItemPrefab.cs.

◆ VariantOf

Identifier Barotrauma.ItemPrefab.VariantOf
get

Definition at line 1564 of file ItemPrefab.cs.