Barotrauma Client Doc
Barotrauma.ContainedItemSprite Class Reference

Public Types

enum class  DecorativeSpriteBehaviorType { None , HideWhenVisible , HideWhenNotVisible }
 

Public Member Functions

 ContainedItemSprite (ContentXElement element, string path="", bool lazyLoad=false)
 
bool MatchesContainer (Item container)
 

Public Attributes

readonly Sprite Sprite
 
readonly bool UseWhenAttached
 
readonly DecorativeSpriteBehaviorType DecorativeSpriteBehavior
 
readonly ImmutableHashSet< IdentifierAllowedContainerIdentifiers
 
readonly ImmutableHashSet< IdentifierAllowedContainerTags
 

Detailed Description

Member Enumeration Documentation

◆ DecorativeSpriteBehaviorType

Enumerator
None 
HideWhenVisible 
HideWhenNotVisible 

Definition at line 32 of file BarotraumaClient/ClientSource/Items/ItemPrefab.cs.

Constructor & Destructor Documentation

◆ ContainedItemSprite()

Barotrauma.ContainedItemSprite.ContainedItemSprite ( ContentXElement  element,
string  path = "",
bool  lazyLoad = false 
)

Member Function Documentation

◆ MatchesContainer()

bool Barotrauma.ContainedItemSprite.MatchesContainer ( Item  container)

Member Data Documentation

◆ AllowedContainerIdentifiers

readonly ImmutableHashSet<Identifier> Barotrauma.ContainedItemSprite.AllowedContainerIdentifiers

◆ AllowedContainerTags

readonly ImmutableHashSet<Identifier> Barotrauma.ContainedItemSprite.AllowedContainerTags

◆ DecorativeSpriteBehavior

readonly DecorativeSpriteBehaviorType Barotrauma.ContainedItemSprite.DecorativeSpriteBehavior

◆ Sprite

readonly Sprite Barotrauma.ContainedItemSprite.Sprite

◆ UseWhenAttached

readonly bool Barotrauma.ContainedItemSprite.UseWhenAttached