Barotrauma Client Doc
|
Classes | |
class | ChildObject |
class | SoundConfig |
Public Types | |
enum class | SpawnPosType { None = 0 , MainPathWall = 1 , SidePathWall = 2 , CaveWall = 4 , NestWall = 8 , RuinWall = 16 , SeaFloor = 32 , MainPath = 64 , LevelStart = 128 , LevelEnd = 256 , OutpostWall = 512 , Wall = MainPathWall | SidePathWall | CaveWall } |
Public Member Functions | |
override string | ToString () |
LevelObjectPrefab (ContentXElement element, LevelObjectPrefabsFile file, Identifier identifierOverride=default) | |
float | GetCommonness (CaveGenerationParams generationParams, bool requireCaveSpecificOverride=true) |
float | GetCommonness (LevelData levelData) |
override void | Dispose () |
void | Save (XElement element) |
Public Member Functions inherited from Barotrauma.Prefab | |
Prefab (ContentFile file, Identifier identifier) | |
Prefab (ContentFile file, ContentXElement element) | |
Static Public Member Functions | |
static Identifier | ParseIdentifier (Identifier identifierOverride, XElement element) |
Static Public Member Functions inherited from Barotrauma.Prefab | |
static void | DisallowCallFromConstructor () |
Public Attributes | |
readonly List< ContentXElement > | LevelTriggerElements |
readonly Dictionary< Identifier, float > | OverrideCommonness |
Overrides the commonness of the object in a specific level type. Key = name of the level type, value = commonness in that level type. More... | |
Public Attributes inherited from Barotrauma.Prefab | |
readonly Identifier | Identifier |
readonly ContentFile | ContentFile |
Static Public Attributes | |
static readonly PrefabCollection< LevelObjectPrefab > | Prefabs = new PrefabCollection<LevelObjectPrefab>() |
Static Public Attributes inherited from Barotrauma.Prefab | |
static readonly ImmutableHashSet< Type > | Types |
Properties | |
List< Sprite > | Sprites = new List<Sprite>() [get] |
DeformableSprite | DeformableSprite [get] |
float | MinSize [get] |
float | MaxSize [get] |
Alignment | Alignment [get] |
Which sides of a wall the object can appear on. More... | |
SpawnPosType | SpawnPos [get] |
XElement | Config [get] |
XElement | PhysicsBodyElement [get] |
int | PhysicsBodyTriggerIndex = -1 [get] |
Dictionary< Sprite, XElement > | SpriteSpecificPhysicsBodyElements = new Dictionary<Sprite, XElement>() [get] |
int | MaxCount [get] |
Vector2 | DepthRange [get] |
float | ClusteringAmount [get] |
The tendency for the prefab to form clusters. Used as an exponent for perlin noise values that are used to determine the probability for an object to spawn at a specific position. More... | |
float | ClusteringGroup [get] |
A value between 0-1 that determines the z-coordinate to sample perlin noise from when determining the probability for an object to spawn at a specific position. Using the same (or close) value for different objects means the objects tend to form clusters in the same areas. More... | |
Vector2 | RandomOffset [get] |
bool | AlignWithSurface [get] |
bool | AllowAtStart [get] |
bool | AllowAtEnd [get] |
float | MinSurfaceWidth [get] |
Minimum length of a graph edge the object can spawn on. More... | |
Vector2 | RandomRotation [get] |
Vector2 | RandomRotationRad [get] |
float | SwingAmount [get] |
float | SwingAmountRad [get] |
float | SwingFrequency [get] |
Vector2 | ScaleOscillation [get] |
float | ScaleOscillationFrequency [get] |
float | Commonness [get] |
float | SonarDisruption [get] |
bool | TakeLevelWallDamage [get] |
bool | HideWhenBroken [get] |
float | Health [get] |
Color | SpriteColor [get] |
string | Name [get] |
List< ChildObject > | ChildObjects [get] |
Dictionary< Identifier, SerializableProperty > | SerializableProperties [get] |
List< LevelObjectPrefab > | OverrideProperties [get] |
A list of prefabs whose properties override this one's properties when a trigger is active. E.g. if a trigger in the index 1 of the trigger list is active, the properties in index 1 in this list are used (unless it's null) More... | |
List< int > | ParticleEmitterTriggerIndex [get] |
List< ParticleEmitterPrefab > | ParticleEmitterPrefabs [get] |
List< Vector2 > | EmitterPositions [get] |
List< SoundConfig > | Sounds = new List<SoundConfig>() [get] |
List< int > | LightSourceTriggerIndex = new List<int>() [get] |
List< LightSourceParams > | LightSourceParams = new List<Lights.LightSourceParams>() [get] |
List< SpriteDeformation > | SpriteDeformations = new List<SpriteDeformation>() [get] |
Only used for editing sprite deformation parameters. The actual LevelObjects use separate SpriteDeformation instances. More... | |
Properties inherited from Barotrauma.PrefabWithUintIdentifier | |
UInt32 | UintIdentifier [get, set] |
Properties inherited from Barotrauma.Prefab | |
ContentPackage? | ContentPackage [get] |
ContentPath | FilePath [get] |
Properties inherited from Barotrauma.ISerializableEntity | |
string | Name [get] |
Dictionary< Identifier, SerializableProperty > | SerializableProperties [get] |
Additional Inherited Members | |
Protected Member Functions inherited from Barotrauma.PrefabWithUintIdentifier | |
PrefabWithUintIdentifier (ContentFile file, Identifier identifier) | |
PrefabWithUintIdentifier (ContentFile file, ContentXElement element) | |
Protected Member Functions inherited from Barotrauma.Prefab | |
virtual Identifier | DetermineIdentifier (XElement element) |
Definition at line 10 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
strong |
Enumerator | |
---|---|
None | |
MainPathWall | |
SidePathWall | |
CaveWall | |
NestWall | |
RuinWall | |
SeaFloor | |
MainPath | |
LevelStart | |
LevelEnd | |
OutpostWall | |
Wall |
Definition at line 35 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
Barotrauma.LevelObjectPrefab.LevelObjectPrefab | ( | ContentXElement | element, |
LevelObjectPrefabsFile | file, | ||
Identifier | identifierOverride = default |
||
) |
Definition at line 326 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
virtual |
Implements Barotrauma.Prefab.
Definition at line 461 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
float Barotrauma.LevelObjectPrefab.GetCommonness | ( | CaveGenerationParams | generationParams, |
bool | requireCaveSpecificOverride = true |
||
) |
Definition at line 432 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
float Barotrauma.LevelObjectPrefab.GetCommonness | ( | LevelData | levelData | ) |
Definition at line 443 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
static |
Definition at line 350 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
void Barotrauma.LevelObjectPrefab.Save | ( | XElement | element | ) |
Definition at line 118 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
override string Barotrauma.LevelObjectPrefab.ToString | ( | ) |
Definition at line 320 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
readonly List<ContentXElement> Barotrauma.LevelObjectPrefab.LevelTriggerElements |
Definition at line 99 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
readonly Dictionary<Identifier, float> Barotrauma.LevelObjectPrefab.OverrideCommonness |
Overrides the commonness of the object in a specific level type. Key = name of the level type, value = commonness in that level type.
Definition at line 105 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
static |
Definition at line 12 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Which sides of a wall the object can appear on.
Definition at line 80 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 175 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 189 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 182 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 299 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
The tendency for the prefab to form clusters. Used as an exponent for perlin noise values that are used to determine the probability for an object to spawn at a specific position.
Definition at line 145 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
A value between 0-1 that determines the z-coordinate to sample perlin noise from when determining the probability for an object to spawn at a specific position. Using the same (or close) value for different objects means the objects tend to form clusters in the same areas.
Definition at line 161 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 256 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 93 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 57 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 133 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 38 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 284 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 277 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 55 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 50 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 126 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 70 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 64 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Minimum length of a graph edge the object can spawn on.
Definition at line 199 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 297 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
A list of prefabs whose properties override this one's properties when a trigger is active. E.g. if a trigger in the index 1 of the trigger list is active, the properties in index 1 in this list are used (unless it's null)
Definition at line 314 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 33 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 28 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 107 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 112 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 168 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 207 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 216 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 239 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 246 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 305 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 263 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 44 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 87 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 291 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Only used for editing sprite deformation parameters. The actual LevelObjects use separate SpriteDeformation instances.
Definition at line 64 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
Definition at line 51 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 118 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 220 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 229 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 232 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.
|
get |
Definition at line 270 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectPrefab.cs.