Barotrauma Client Doc
|
Public Member Functions | |
StructurePrefab (ContentXElement element, StructureFile file) | |
override void | Dispose () |
override void | UpdatePlacing (Camera cam) |
override void | DrawPlacing (SpriteBatch spriteBatch, Camera cam) |
override void | DrawPlacing (SpriteBatch spriteBatch, Rectangle placeRect, float scale=1.0f, float rotation=0.0f, SpriteEffects spriteEffects=SpriteEffects.None) |
Public Member Functions inherited from Barotrauma.MapEntityPrefab | |
MapEntityPrefab (ContentXElement element, ContentFile file) | |
string | GetItemNameTextId () |
string | GetHullNameTextId () |
IEnumerable< Identifier > | GetAllowedUpgrades () |
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) |
void | DrawListLine (SpriteBatch spriteBatch, Vector2 pos, Color color) |
Public Member Functions inherited from Barotrauma.Prefab | |
Prefab (ContentFile file, Identifier identifier) | |
Prefab (ContentFile file, ContentXElement element) | |
Public Attributes | |
readonly ContentXElement | ConfigElement |
readonly? bool | IsHorizontal |
If null, the orientation is determined automatically based on the dimensions of the structure instances More... | |
readonly Sprite | BackgroundSprite |
readonly Color | BackgroundSpriteColor |
readonly ImmutableArray< DecorativeSprite > | DecorativeSprites |
readonly ImmutableDictionary< int, ImmutableArray< DecorativeSprite > > | DecorativeSpriteGroups |
Public Attributes inherited from Barotrauma.Prefab | |
readonly Identifier | Identifier |
readonly ContentFile | ContentFile |
Static Public Attributes | |
static readonly PrefabCollection< StructurePrefab > | Prefabs = new PrefabCollection<StructurePrefab>() |
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) | |
Protected Attributes | |
Vector2 | textureScale = Vector2.One |
Properties | |
override LocalizedString | Name [get] |
override bool | CanSpriteFlipX [get] |
override bool | CanSpriteFlipY [get] |
Vector2 | ScaledSize [get] |
override Sprite | Sprite [get] |
override string | OriginalName [get] |
override ImmutableHashSet< Identifier > | Tags [get] |
override ImmutableHashSet< Identifier > | AllowedLinks [get] |
override MapEntityCategory | Category [get] |
override ImmutableHashSet< string > | Aliases [get] |
bool | Body [get] |
float | BodyRotation [get] |
float | BodyWidth [get] |
float | BodyHeight [get] |
Vector2 | BodyOffset [get] |
bool | Platform [get] |
bool | AllowAttachItems [get] |
bool | AllowRotatingInEditor [get, set] |
float | MinHealth [get] |
float | Health [get] |
bool | IndestructibleInOutposts [get] |
bool | CastShadow [get] |
Direction | StairDirection [get] |
float | StairAngle [get] |
bool | NoAITarget [get] |
Vector2 | Size [get] |
string | DamageSound [get] |
string | DamageParticle [get] |
Vector2 | TextureScale [get] |
Properties inherited from Barotrauma.MapEntityPrefab | |
static IEnumerable< MapEntityPrefab > | List [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< Identifier > | Tags [get] |
abstract ImmutableHashSet< Identifier > | AllowedLinks [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 | |
ContentPackage? | ContentPackage [get] |
ContentPath | FilePath [get] |
Additional Inherited Members | |
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 Protected Attributes inherited from Barotrauma.MapEntityPrefab | |
static Vector2 | placePosition |
Definition at line 16 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
Barotrauma.StructurePrefab.StructurePrefab | ( | ContentXElement | element, |
StructureFile | file | ||
) |
Definition at line 136 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
protectedvirtual |
Implements Barotrauma.MapEntityPrefab.
Definition at line 321 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
protectedvirtual |
Reimplemented from Barotrauma.Prefab.
Definition at line 121 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
virtual |
Implements Barotrauma.Prefab.
Definition at line 326 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
virtual |
Reimplemented from Barotrauma.MapEntityPrefab.
Definition at line 73 of file BarotraumaClient/ClientSource/Map/StructurePrefab.cs.
|
virtual |
Reimplemented from Barotrauma.MapEntityPrefab.
Definition at line 97 of file BarotraumaClient/ClientSource/Map/StructurePrefab.cs.
|
virtual |
Reimplemented from Barotrauma.MapEntityPrefab.
Definition at line 16 of file BarotraumaClient/ClientSource/Map/StructurePrefab.cs.
readonly Sprite Barotrauma.StructurePrefab.BackgroundSprite |
Definition at line 34 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
readonly Color Barotrauma.StructurePrefab.BackgroundSpriteColor |
Definition at line 11 of file BarotraumaClient/ClientSource/Map/StructurePrefab.cs.
readonly ContentXElement Barotrauma.StructurePrefab.ConfigElement |
Definition at line 22 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
readonly ImmutableDictionary<int, ImmutableArray<DecorativeSprite> > Barotrauma.StructurePrefab.DecorativeSpriteGroups |
Definition at line 14 of file BarotraumaClient/ClientSource/Map/StructurePrefab.cs.
readonly ImmutableArray<DecorativeSprite> Barotrauma.StructurePrefab.DecorativeSprites |
Definition at line 13 of file BarotraumaClient/ClientSource/Map/StructurePrefab.cs.
readonly? bool Barotrauma.StructurePrefab.IsHorizontal |
If null, the orientation is determined automatically based on the dimensions of the structure instances
Definition at line 30 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
static |
Definition at line 18 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
protected |
Definition at line 108 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 46 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 68 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 42 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
getset |
Definition at line 71 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 49 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 58 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 62 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 52 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 55 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 24 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 25 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 88 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 44 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 106 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 103 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 78 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 85 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 74 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 20 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 97 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 38 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 65 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 32 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 100 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 36 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 94 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 91 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 40 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.
|
get |
Definition at line 110 of file BarotraumaShared/SharedSource/Map/StructurePrefab.cs.