Barotrauma Client Doc
Barotrauma.FishRagdollParams Class Reference
Inheritance diagram for Barotrauma.FishRagdollParams:
Barotrauma.RagdollParams Barotrauma.EditableParams Barotrauma.IMemorizable< RagdollParams > Barotrauma.ISerializableEntity

Static Public Member Functions

static FishRagdollParams GetDefaultRagdollParams (Identifier speciesName)
 
- Static Public Member Functions inherited from Barotrauma.RagdollParams
static string GetDefaultFileName (Identifier speciesName)
 
static string GetDefaultFile (Identifier speciesName, ContentPackage contentPackage=null)
 
static string GetFolder (Identifier speciesName, ContentPackage contentPackage=null)
 
static T GetDefaultRagdollParams< T > (Identifier speciesName)
 
static T GetRagdollParams< T > (Identifier speciesName, string fileName=null)
 If the file name is left null, default file is selected. If fails, will select the default file. Note: Use the filename without the extensions, don't use the full path! If a custom folder is used, it's defined in the character info file. More...
 
static T CreateDefault< T > (string fullPath, Identifier speciesName, XElement mainElement)
 Creates a default ragdoll for the species using a predefined configuration. Note: Use only to create ragdolls for new characters, because this overrides the old ragdoll! More...
 
static void ClearCache ()
 

Additional Inherited Members

- Public Member Functions inherited from Barotrauma.RagdollParams
bool Save (string fileNameWithoutExtension=null)
 
void Apply ()
 Applies the current properties to the xml definition without saving to file. More...
 
override bool Reset (bool forceReload=false)
 Resets the current properties to the xml (stored in memory). Force reload reloads the file from disk. More...
 
bool Deserialize (XElement element=null, bool alsoChildren=true, bool recursive=true)
 
bool Serialize (XElement element=null, bool alsoChildren=true, bool recursive=true)
 
void AddToEditor (ParamsEditor editor, bool alsoChildren=true, int space=0)
 
void ApplyVariantScale (XDocument variantFile)
 
void StoreSnapshot ()
 
void Undo ()
 
void Redo ()
 
void ClearHistory ()
 
- Public Member Functions inherited from Barotrauma.EditableParams
virtual bool Save (string fileNameWithoutExtension=null, System.Xml.XmlWriterSettings settings=null)
 
virtual void AddToEditor (ParamsEditor editor, int space=0)
 
- Public Member Functions inherited from Barotrauma.IMemorizable< RagdollParams >
void StoreSnapshot ()
 
void Undo ()
 
void Redo ()
 
void ClearHistory ()
 
- Static Public Attributes inherited from Barotrauma.RagdollParams
const float MIN_SCALE = 0.1f
 
const float MAX_SCALE = 2
 
- Protected Member Functions inherited from Barotrauma.RagdollParams
IEnumerable< SubParamGetAllSubParams ()
 
override void UpdatePath (ContentPath fullPath)
 
bool Load (ContentPath file, Identifier speciesName)
 
void CreateColliders ()
 
void CreateLimbs ()
 
void CreateJoints ()
 
- Protected Member Functions inherited from Barotrauma.EditableParams
ContentXElement CreateElement (string name, params object[] attrs)
 
virtual string GetName ()
 
virtual bool Deserialize (XElement element=null)
 
virtual bool Serialize (XElement element=null)
 
virtual bool Load (ContentPath file)
 
- Protected Attributes inherited from Barotrauma.EditableParams
ContentXElement rootElement
 
XDocument doc
 
- Properties inherited from Barotrauma.RagdollParams
Identifier SpeciesName [get]
 
string Texture [get, set]
 
Color Color [get, set]
 
float SpritesheetOrientation [get, set]
 
bool IsSpritesheetOrientationHorizontal [get]
 
float LimbScale [get, set]
 
float JointScale [get, set]
 
float TextureScale [get, set]
 
float ColliderHeightFromFloor [get, set]
 
float ImpactTolerance [get, set]
 
bool CanEnterSubmarine [get, set]
 
bool CanWalk [get, set]
 
bool Draggable [get, set]
 
LimbType MainLimb [get, set]
 
List< ColliderParamsColliders = new List<ColliderParams>() [get]
 
List< LimbParamsLimbs = new List<LimbParams>() [get]
 
List< JointParamsJoints = new List<JointParams>() [get]
 
Memento< RagdollParamsMemento = new Memento<RagdollParams>() [get, protected set]
 
- Properties inherited from Barotrauma.EditableParams
bool IsLoaded [get, protected set]
 
string Name [get]
 
string FileName [get]
 
string Folder [get]
 
ContentPath Path = ContentPath.Empty [get, protected set]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get, protected set]
 
virtual ContentXElementMainElement [get]
 
ContentXElement OriginalElement [get, protected set]
 
SerializableEntityEditor SerializableEntityEditor [get, protected set]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 
- Properties inherited from Barotrauma.IMemorizable< RagdollParams >
Memento< T > Memento [get]
 

Detailed Description

Definition at line 22 of file RagdollParams.cs.

Member Function Documentation

◆ GetDefaultRagdollParams()

static FishRagdollParams Barotrauma.FishRagdollParams.GetDefaultRagdollParams ( Identifier  speciesName)
static