Barotrauma Client Doc
Barotrauma.SpriteDeformations.PositionalDeformationParams Class Reference
Inheritance diagram for Barotrauma.SpriteDeformations.PositionalDeformationParams:
Barotrauma.SpriteDeformations.SpriteDeformationParams Barotrauma.ISerializableEntity

Public Member Functions

 PositionalDeformationParams (XElement element)
 
- Public Member Functions inherited from Barotrauma.SpriteDeformations.SpriteDeformationParams
 SpriteDeformationParams (XElement element)
 

Properties

float Falloff [get, set]
 0 = no falloff, the entire sprite is stretched 1 = stretching the center of the sprite has no effect at the edges More...
 
float MaxDeformation [get, set]
 Maximum stretch per vertex (1 = the size of the sprite) More...
 
float ReactionSpeed [get, set]
 How fast the sprite reacts to being stretched More...
 
float RecoverSpeed [get, set]
 How fast the sprite returns back to normal after stretching ends More...
 
- Properties inherited from Barotrauma.SpriteDeformations.SpriteDeformationParams
int Sync [get]
 A negative value means that the deformation is used only by one sprite only (default). A positive value means that this deformation is or could be used for multiple sprites. This behaviour is not automatic, and has to be implemented for any particular case separately (currently only used in Limbs). More...
 
string Type [get, set]
 
SpriteDeformation.DeformationBlendMode BlendMode [get, set]
 
string Name [get]
 
float Strength [get]
 
float MaxRotation [get]
 
bool UseMovementSine [get, set]
 
bool StopWhenHostIsDead [get, set]
 
bool OnlyInWater [get, set]
 
float SineOffset [get, set]
 Only used if UseMovementSine is enabled. Multiplier for Pi. More...
 
virtual float Frequency = 1 [get, set]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get, set]
 
Point Resolution [get, set]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 

Additional Inherited Members

- Static Public Attributes inherited from Barotrauma.SpriteDeformations.SpriteDeformationParams
static readonly Point ShaderMaxResolution = new Point(15, 15)
 Defined in the shader. More...
 

Detailed Description

Definition at line 7 of file PositionalDeformation.cs.

Constructor & Destructor Documentation

◆ PositionalDeformationParams()

Barotrauma.SpriteDeformations.PositionalDeformationParams.PositionalDeformationParams ( XElement  element)

Definition at line 35 of file PositionalDeformation.cs.

Property Documentation

◆ Falloff

float Barotrauma.SpriteDeformations.PositionalDeformationParams.Falloff
getset

0 = no falloff, the entire sprite is stretched 1 = stretching the center of the sprite has no effect at the edges

Definition at line 14 of file PositionalDeformation.cs.

◆ MaxDeformation

float Barotrauma.SpriteDeformations.PositionalDeformationParams.MaxDeformation
getset

Maximum stretch per vertex (1 = the size of the sprite)

Definition at line 20 of file PositionalDeformation.cs.

◆ ReactionSpeed

float Barotrauma.SpriteDeformations.PositionalDeformationParams.ReactionSpeed
getset

How fast the sprite reacts to being stretched

Definition at line 27 of file PositionalDeformation.cs.

◆ RecoverSpeed

float Barotrauma.SpriteDeformations.PositionalDeformationParams.RecoverSpeed
getset

How fast the sprite returns back to normal after stretching ends

Definition at line 33 of file PositionalDeformation.cs.