Barotrauma Client Doc
Barotrauma.Particles.ParticlePrefab Class Reference
Inheritance diagram for Barotrauma.Particles.ParticlePrefab:
Barotrauma.Prefab Barotrauma.ISerializableEntity

Public Types

enum class  DrawTargetType { Air = 1 , Water = 2 , Both = 3 }
 

Public Member Functions

override void Dispose ()
 
 ParticlePrefab (ContentXElement element, ContentFile file)
 
Vector2 CalculateEndPosition (Vector2 startPosition, Vector2 velocity)
 
Vector2 CalculateEndSize ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Public Attributes

readonly List< SpriteSprites
 
readonly List< ParticleEmitterPrefabSubEmitters = new List<ParticleEmitterPrefab>()
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

static readonly PrefabCollection< ParticlePrefabPrefabs = new PrefabCollection<ParticlePrefab>()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Properties

string Name [get]
 
float LifeTime [get]
 
float LifeTimeMin [get]
 
float StartDelayMin [get]
 
float StartDelayMax [get]
 
float AngularVelocityMinRad [get]
 
float AngularVelocityMin [get]
 
float AngularVelocityMaxRad [get]
 
float AngularVelocityMax [get]
 
float StartRotationMinRad [get]
 
float StartRotationMin [get]
 
float StartRotationMaxRad [get]
 
float StartRotationMax [get]
 
bool RotateToDirection [get]
 
float Drag [get]
 
float WaterDrag [get]
 
Vector2 VelocityChangeDisplay [get]
 
Vector2 VelocityChange [get]
 
Vector2 VelocityChangeWaterDisplay [get]
 
Vector2 VelocityChangeWater [get]
 
float CollisionRadius [get]
 
bool InvariantCollisionSize [get]
 
bool UseCollision [get]
 
bool DeleteOnCollision [get]
 
float Friction [get]
 
float Restitution [get]
 
Vector2 StartSizeMin [get]
 
Vector2 StartSizeMax [get]
 
Vector2 SizeChangeMin [get]
 
Vector2 SizeChangeMax [get]
 
float GrowTime [get]
 
Color StartColor [get]
 
Color MiddleColor [get]
 
Color EndColor [get]
 
bool UseMiddleColor [get]
 
DrawTargetType DrawTarget [get]
 
bool DrawOnTop [get]
 
bool DrawAlways [get]
 
ParticleBlendState BlendState [get]
 
int Priority [get]
 
float AnimDuration [get]
 
bool LoopAnim [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 
- Protected Member Functions inherited from Barotrauma.Prefab
virtual Identifier DetermineIdentifier (XElement element)
 

Detailed Description

Definition at line 9 of file ParticlePrefab.cs.

Member Enumeration Documentation

◆ DrawTargetType

Enumerator
Air 
Water 
Both 

Definition at line 13 of file ParticlePrefab.cs.

Constructor & Destructor Documentation

◆ ParticlePrefab()

Barotrauma.Particles.ParticlePrefab.ParticlePrefab ( ContentXElement  element,
ContentFile  file 
)

Definition at line 220 of file ParticlePrefab.cs.

Member Function Documentation

◆ CalculateEndPosition()

Vector2 Barotrauma.Particles.ParticlePrefab.CalculateEndPosition ( Vector2  startPosition,
Vector2  velocity 
)

Definition at line 287 of file ParticlePrefab.cs.

◆ CalculateEndSize()

Vector2 Barotrauma.Particles.ParticlePrefab.CalculateEndSize ( )

Definition at line 293 of file ParticlePrefab.cs.

◆ Dispose()

override void Barotrauma.Particles.ParticlePrefab.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 17 of file ParticlePrefab.cs.

Member Data Documentation

◆ Prefabs

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

Definition at line 11 of file ParticlePrefab.cs.

◆ Sprites

readonly List<Sprite> Barotrauma.Particles.ParticlePrefab.Sprites

Definition at line 15 of file ParticlePrefab.cs.

◆ SubEmitters

readonly List<ParticleEmitterPrefab> Barotrauma.Particles.ParticlePrefab.SubEmitters = new List<ParticleEmitterPrefab>()

Definition at line 210 of file ParticlePrefab.cs.

Property Documentation

◆ AngularVelocityMax

float Barotrauma.Particles.ParticlePrefab.AngularVelocityMax
get

Definition at line 60 of file ParticlePrefab.cs.

◆ AngularVelocityMaxRad

float Barotrauma.Particles.ParticlePrefab.AngularVelocityMaxRad
get

Definition at line 57 of file ParticlePrefab.cs.

◆ AngularVelocityMin

float Barotrauma.Particles.ParticlePrefab.AngularVelocityMin
get

Definition at line 46 of file ParticlePrefab.cs.

◆ AngularVelocityMinRad

float Barotrauma.Particles.ParticlePrefab.AngularVelocityMinRad
get

Definition at line 43 of file ParticlePrefab.cs.

◆ AnimDuration

float Barotrauma.Particles.ParticlePrefab.AnimDuration
get

Definition at line 203 of file ParticlePrefab.cs.

◆ BlendState

ParticleBlendState Barotrauma.Particles.ParticlePrefab.BlendState
get

Definition at line 195 of file ParticlePrefab.cs.

◆ CollisionRadius

float Barotrauma.Particles.ParticlePrefab.CollisionRadius
get

Definition at line 136 of file ParticlePrefab.cs.

◆ DeleteOnCollision

bool Barotrauma.Particles.ParticlePrefab.DeleteOnCollision
get

Definition at line 145 of file ParticlePrefab.cs.

◆ Drag

float Barotrauma.Particles.ParticlePrefab.Drag
get

Definition at line 102 of file ParticlePrefab.cs.

◆ DrawAlways

bool Barotrauma.Particles.ParticlePrefab.DrawAlways
get

Definition at line 192 of file ParticlePrefab.cs.

◆ DrawOnTop

bool Barotrauma.Particles.ParticlePrefab.DrawOnTop
get

Definition at line 189 of file ParticlePrefab.cs.

◆ DrawTarget

DrawTargetType Barotrauma.Particles.ParticlePrefab.DrawTarget
get

Definition at line 186 of file ParticlePrefab.cs.

◆ EndColor

Color Barotrauma.Particles.ParticlePrefab.EndColor
get

Definition at line 180 of file ParticlePrefab.cs.

◆ Friction

float Barotrauma.Particles.ParticlePrefab.Friction
get

Definition at line 148 of file ParticlePrefab.cs.

◆ GrowTime

float Barotrauma.Particles.ParticlePrefab.GrowTime
get

Definition at line 169 of file ParticlePrefab.cs.

◆ InvariantCollisionSize

bool Barotrauma.Particles.ParticlePrefab.InvariantCollisionSize
get

Definition at line 139 of file ParticlePrefab.cs.

◆ LifeTime

float Barotrauma.Particles.ParticlePrefab.LifeTime
get

Definition at line 30 of file ParticlePrefab.cs.

◆ LifeTimeMin

float Barotrauma.Particles.ParticlePrefab.LifeTimeMin
get

Definition at line 33 of file ParticlePrefab.cs.

◆ LoopAnim

bool Barotrauma.Particles.ParticlePrefab.LoopAnim
get

Definition at line 206 of file ParticlePrefab.cs.

◆ MiddleColor

Color Barotrauma.Particles.ParticlePrefab.MiddleColor
get

Definition at line 177 of file ParticlePrefab.cs.

◆ Name

string Barotrauma.Particles.ParticlePrefab.Name
get

Definition at line 27 of file ParticlePrefab.cs.

◆ Priority

int Barotrauma.Particles.ParticlePrefab.Priority
get

Definition at line 198 of file ParticlePrefab.cs.

◆ Restitution

float Barotrauma.Particles.ParticlePrefab.Restitution
get

Definition at line 152 of file ParticlePrefab.cs.

◆ RotateToDirection

bool Barotrauma.Particles.ParticlePrefab.RotateToDirection
get

Definition at line 99 of file ParticlePrefab.cs.

◆ SerializableProperties

Dictionary<Identifier, SerializableProperty> Barotrauma.Particles.ParticlePrefab.SerializableProperties
get

Definition at line 212 of file ParticlePrefab.cs.

◆ SizeChangeMax

Vector2 Barotrauma.Particles.ParticlePrefab.SizeChangeMax
get

Definition at line 166 of file ParticlePrefab.cs.

◆ SizeChangeMin

Vector2 Barotrauma.Particles.ParticlePrefab.SizeChangeMin
get

Definition at line 163 of file ParticlePrefab.cs.

◆ StartColor

Color Barotrauma.Particles.ParticlePrefab.StartColor
get

Definition at line 174 of file ParticlePrefab.cs.

◆ StartDelayMax

float Barotrauma.Particles.ParticlePrefab.StartDelayMax
get

Definition at line 39 of file ParticlePrefab.cs.

◆ StartDelayMin

float Barotrauma.Particles.ParticlePrefab.StartDelayMin
get

Definition at line 37 of file ParticlePrefab.cs.

◆ StartRotationMax

float Barotrauma.Particles.ParticlePrefab.StartRotationMax
get

Definition at line 88 of file ParticlePrefab.cs.

◆ StartRotationMaxRad

float Barotrauma.Particles.ParticlePrefab.StartRotationMaxRad
get

Definition at line 85 of file ParticlePrefab.cs.

◆ StartRotationMin

float Barotrauma.Particles.ParticlePrefab.StartRotationMin
get

Definition at line 74 of file ParticlePrefab.cs.

◆ StartRotationMinRad

float Barotrauma.Particles.ParticlePrefab.StartRotationMinRad
get

Definition at line 71 of file ParticlePrefab.cs.

◆ StartSizeMax

Vector2 Barotrauma.Particles.ParticlePrefab.StartSizeMax
get

Definition at line 160 of file ParticlePrefab.cs.

◆ StartSizeMin

Vector2 Barotrauma.Particles.ParticlePrefab.StartSizeMin
get

Definition at line 157 of file ParticlePrefab.cs.

◆ UseCollision

bool Barotrauma.Particles.ParticlePrefab.UseCollision
get

Definition at line 142 of file ParticlePrefab.cs.

◆ UseMiddleColor

bool Barotrauma.Particles.ParticlePrefab.UseMiddleColor
get

Definition at line 183 of file ParticlePrefab.cs.

◆ VelocityChange

Vector2 Barotrauma.Particles.ParticlePrefab.VelocityChange
get

Definition at line 111 of file ParticlePrefab.cs.

◆ VelocityChangeDisplay

Vector2 Barotrauma.Particles.ParticlePrefab.VelocityChangeDisplay
get

Definition at line 108 of file ParticlePrefab.cs.

◆ VelocityChangeWater

Vector2 Barotrauma.Particles.ParticlePrefab.VelocityChangeWater
get

Definition at line 125 of file ParticlePrefab.cs.

◆ VelocityChangeWaterDisplay

Vector2 Barotrauma.Particles.ParticlePrefab.VelocityChangeWaterDisplay
get

Definition at line 122 of file ParticlePrefab.cs.

◆ WaterDrag

float Barotrauma.Particles.ParticlePrefab.WaterDrag
get

Definition at line 105 of file ParticlePrefab.cs.