|
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 () |
|
|
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< ColliderParams > | Colliders = new List<ColliderParams>() [get] |
|
List< LimbParams > | Limbs = new List<LimbParams>() [get] |
|
List< JointParams > | Joints = new List<JointParams>() [get] |
|
Memento< RagdollParams > | Memento = new Memento<RagdollParams>() [get, protected set] |
|
bool | IsLoaded [get, protected set] |
|
string | Name [get] |
|
string | FileName [get] |
|
string | Folder [get] |
|
ContentPath | Path = ContentPath.Empty [get, protected set] |
|
Dictionary< Identifier, SerializableProperty > | SerializableProperties [get, protected set] |
|
virtual ContentXElement? | MainElement [get] |
|
ContentXElement | OriginalElement [get, protected set] |
|
SerializableEntityEditor | SerializableEntityEditor [get, protected set] |
|
string | Name [get] |
|
Dictionary< Identifier, SerializableProperty > | SerializableProperties [get] |
|
Memento< T > | Memento [get] |
|
Definition at line 27 of file RagdollParams.cs.
◆ AddToEditor()
void Barotrauma.RagdollParams.AddToEditor |
( |
ParamsEditor |
editor, |
|
|
bool |
alsoChildren = true , |
|
|
int |
space = 0 |
|
) |
| |
◆ Apply()
void Barotrauma.RagdollParams.Apply |
( |
| ) |
|
Applies the current properties to the xml definition without saving to file.
Definition at line 297 of file RagdollParams.cs.
◆ ApplyVariantScale()
void Barotrauma.RagdollParams.ApplyVariantScale |
( |
XDocument |
variantFile | ) |
|
◆ ClearCache()
static void Barotrauma.RagdollParams.ClearCache |
( |
| ) |
|
|
static |
◆ ClearHistory()
void Barotrauma.RagdollParams.ClearHistory |
( |
| ) |
|
◆ CreateColliders()
void Barotrauma.RagdollParams.CreateColliders |
( |
| ) |
|
|
protected |
◆ CreateDefault< T >()
static T Barotrauma.RagdollParams.CreateDefault< T > |
( |
string |
fullPath, |
|
|
Identifier |
speciesName, |
|
|
XElement |
mainElement |
|
) |
| |
|
static |
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!
- Type Constraints
-
T | : | RagdollParams | |
T | : | new() | |
Definition at line 217 of file RagdollParams.cs.
◆ CreateJoints()
void Barotrauma.RagdollParams.CreateJoints |
( |
| ) |
|
|
protected |
◆ CreateLimbs()
void Barotrauma.RagdollParams.CreateLimbs |
( |
| ) |
|
|
protected |
◆ Deserialize()
bool Barotrauma.RagdollParams.Deserialize |
( |
XElement |
element = null , |
|
|
bool |
alsoChildren = true , |
|
|
bool |
recursive = true |
|
) |
| |
◆ GetAllSubParams()
IEnumerable<SubParam> Barotrauma.RagdollParams.GetAllSubParams |
( |
| ) |
|
|
protected |
◆ GetDefaultFile()
◆ GetDefaultFileName()
static string Barotrauma.RagdollParams.GetDefaultFileName |
( |
Identifier |
speciesName | ) |
|
|
static |
◆ GetDefaultRagdollParams< T >()
static T Barotrauma.RagdollParams.GetDefaultRagdollParams< T > |
( |
Identifier |
speciesName | ) |
|
|
static |
- Type Constraints
-
T | : | RagdollParams | |
T | : | new() | |
T | : | GetRagdollParams<T> | |
T | : | speciesName | |
◆ GetFolder()
◆ GetRagdollParams< T >()
static T Barotrauma.RagdollParams.GetRagdollParams< T > |
( |
Identifier |
speciesName, |
|
|
string |
fileName = null |
|
) |
| |
|
static |
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.
- Type Constraints
-
T | : | RagdollParams | |
T | : | new() | |
Definition at line 132 of file RagdollParams.cs.
◆ Load()
◆ Redo()
void Barotrauma.RagdollParams.Redo |
( |
| ) |
|
◆ Reset()
override bool Barotrauma.RagdollParams.Reset |
( |
bool |
forceReload = false | ) |
|
|
virtual |
◆ Save()
bool Barotrauma.RagdollParams.Save |
( |
string |
fileNameWithoutExtension = null | ) |
|
◆ Serialize()
bool Barotrauma.RagdollParams.Serialize |
( |
XElement |
element = null , |
|
|
bool |
alsoChildren = true , |
|
|
bool |
recursive = true |
|
) |
| |
◆ StoreSnapshot()
void Barotrauma.RagdollParams.StoreSnapshot |
( |
| ) |
|
◆ Undo()
void Barotrauma.RagdollParams.Undo |
( |
| ) |
|
◆ UpdatePath()
override void Barotrauma.RagdollParams.UpdatePath |
( |
ContentPath |
fullPath | ) |
|
|
protectedvirtual |
◆ MAX_SCALE
const float Barotrauma.RagdollParams.MAX_SCALE = 2 |
|
static |
◆ MIN_SCALE
const float Barotrauma.RagdollParams.MIN_SCALE = 0.1f |
|
static |
◆ CanEnterSubmarine
bool Barotrauma.RagdollParams.CanEnterSubmarine |
|
getset |
◆ CanWalk
bool Barotrauma.RagdollParams.CanWalk |
|
getset |
◆ ColliderHeightFromFloor
float Barotrauma.RagdollParams.ColliderHeightFromFloor |
|
getset |
◆ Colliders
◆ Color
Color Barotrauma.RagdollParams.Color |
|
getset |
◆ Draggable
bool Barotrauma.RagdollParams.Draggable |
|
getset |
◆ ImpactTolerance
float Barotrauma.RagdollParams.ImpactTolerance |
|
getset |
◆ IsSpritesheetOrientationHorizontal
bool Barotrauma.RagdollParams.IsSpritesheetOrientationHorizontal |
|
get |
◆ Joints
◆ JointScale
float Barotrauma.RagdollParams.JointScale |
|
getset |
◆ Limbs
◆ LimbScale
float Barotrauma.RagdollParams.LimbScale |
|
getset |
◆ MainLimb
LimbType Barotrauma.RagdollParams.MainLimb |
|
getset |
◆ Memento
◆ SpeciesName
◆ SpritesheetOrientation
float Barotrauma.RagdollParams.SpritesheetOrientation |
|
getset |
◆ Texture
string Barotrauma.RagdollParams.Texture |
|
getset |
◆ TextureScale
float Barotrauma.RagdollParams.TextureScale |
|
getset |