StructurePrefab

Barotrauma.StructurePrefab

Functions

CreateTooltipText()

CreateTooltipText

Returns

  • RichString

DebugCreateInstance()

DebugCreateInstance

Dispose()

Dispose

DrawListLine(spriteBatch, pos, color)

DrawListLine

Parameters

  • spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

  • pos Microsoft.Xna.Framework.Vector2

  • color Microsoft.Xna.Framework.Color

DrawPlacing(spriteBatch, cam)

DrawPlacing

Parameters

  • spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

  • cam Camera

DrawPlacing(spriteBatch, placeRect, scale, rotation, spriteEffects)

DrawPlacing

Parameters

  • spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

  • placeRect Microsoft.Xna.Framework.Rectangle

  • scale number

  • rotation number

  • spriteEffects Microsoft.Xna.Framework.Graphics.SpriteEffects

Equals(obj)

Equals

Parameters

  • obj Object

Returns

  • bool

GetAllowedUpgrades()

GetAllowedUpgrades

Returns

  • IEnumerable

GetHashCode()

GetHashCode

Returns

  • number

GetHullNameTextId()

GetHullNameTextId

Returns

GetItemNameTextId()

GetItemNameTextId

Returns

GetType()

GetType

Returns

  • Type

HasSubCategory(subcategory)

HasSubCategory

Parameters

Returns

  • bool

IsLinkAllowed(target)

IsLinkAllowed

Parameters

  • target MapEntityPrefab

Returns

  • bool

NameMatches(allowedNames, comparisonType)

NameMatches

Parameters

  • allowedNames IEnumerable

  • comparisonType StringComparison

Returns

  • bool

NameMatches(name, comparisonType)

NameMatches

Parameters

  • comparisonType StringComparison

Returns

  • bool

StructurePrefab(element, file)

StructurePrefab

Parameters

  • element ContentXElement

  • file StructureFile

ToString()

ToString

Returns

UpdatePlacing(cam)

UpdatePlacing

Parameters

  • cam Camera

Fields

Aliases

Aliases, field of type Collections.Immutable.ImmutableHashSet

  • Aliases

AllowAttachItems

AllowAttachItems, field of type bool

  • AllowAttachItems

AllowRotatingInEditor

AllowRotatingInEditor, field of type bool

  • AllowRotatingInEditor

AllowedUpgrades

AllowedUpgrades, field of type string

  • AllowedUpgrades

BackgroundSprite

BackgroundSprite, field of type Sprite

  • BackgroundSprite

BackgroundSpriteColor

BackgroundSpriteColor, field of type Microsoft.Xna.Framework.Color

  • BackgroundSpriteColor

Body

Body, field of type bool

  • Body

BodyHeight

BodyHeight, field of type number

  • BodyHeight

BodyOffset

BodyOffset, field of type Microsoft.Xna.Framework.Vector2

  • BodyOffset

BodyRotation

BodyRotation, field of type number

  • BodyRotation

BodyWidth

BodyWidth, field of type number

  • BodyWidth

CanSpriteFlipX

CanSpriteFlipX, field of type bool

  • CanSpriteFlipX

CanSpriteFlipY

CanSpriteFlipY, field of type bool

  • CanSpriteFlipY

CastShadow

CastShadow, field of type bool

  • CastShadow

Category

Category, field of type MapEntityCategory

  • Category

ConfigElement

ConfigElement, field of type ContentXElement

  • ConfigElement

ContentFile

ContentFile, field of type ContentFile

  • ContentFile

ContentPackage

ContentPackage, field of type ContentPackage

  • ContentPackage

DamageParticle

DamageParticle, field of type string

  • DamageParticle

DamageSound

DamageSound, field of type string

  • DamageSound

DecorativeSpriteGroups

DecorativeSpriteGroups, field of type Collections.Immutable.ImmutableDictionary>

  • DecorativeSpriteGroups

DecorativeSprites

DecorativeSprites, field of type Collections.Immutable.ImmutableArray

  • DecorativeSprites

Description

Description, field of type LocalizedString

  • Description

FilePath

FilePath, field of type ContentPath

  • FilePath

Health

Health, field of type number

  • Health

HideInEditors

HideInEditors, field of type bool

  • HideInEditors

HideInMenus

HideInMenus, field of type bool

  • HideInMenus

Identifier

Identifier, field of type Identifier

  • Identifier

IndestructibleInOutposts

IndestructibleInOutposts, field of type bool

  • IndestructibleInOutposts

IsHorizontal

IsHorizontal, field of type ?bool

  • IsHorizontal

IsModded

IsModded, field of type bool

  • IsModded

Linkable

Linkable, field of type bool

  • Linkable

MinHealth

MinHealth, field of type number

  • MinHealth

Name

Name, field of type LocalizedString

  • Name

NoAITarget

NoAITarget, field of type bool

  • NoAITarget

OriginalName

OriginalName, field of type string

  • OriginalName

Platform

Platform, field of type bool

  • Platform

ResizeHorizontal

ResizeHorizontal, field of type bool

  • ResizeHorizontal

ResizeVertical

ResizeVertical, field of type bool

  • ResizeVertical

Scale

Scale, field of type number

  • Scale

ScaledSize

ScaledSize, field of type Microsoft.Xna.Framework.Vector2

  • ScaledSize

Size

Size, field of type Microsoft.Xna.Framework.Vector2

  • Size

Sprite

Sprite, field of type Sprite

  • Sprite

SpriteColor

SpriteColor, field of type Microsoft.Xna.Framework.Color

  • SpriteColor

StairAngle

StairAngle, field of type number

  • StairAngle

StairDirection

StairDirection, field of type Direction

  • StairDirection

StructurePrefab.Prefabs

StructurePrefab.Prefabs, field of type PrefabCollection

Subcategory

Subcategory, field of type string

  • Subcategory

Tags

Tags, field of type Collections.Immutable.ImmutableHashSet

  • Tags

TextureScale

TextureScale, field of type Microsoft.Xna.Framework.Vector2

  • TextureScale

UintIdentifier

UintIdentifier, field of type number

  • UintIdentifier