|
| static string | GetDefaultFileName (Identifier speciesName, AnimationType animType) |
| |
| static string | GetDefaultFile (Identifier speciesName, AnimationType animType) |
| |
| static string | GetFolder (Identifier speciesName) |
| |
| static string | GetRandomFilePath (IReadOnlyList< string > filePaths, AnimationType type) |
| | Selects a random filepath from multiple paths, matching the specified animation type. More...
|
| |
| static IEnumerable< string > | FilterFilesByType (IEnumerable< string > filePaths, AnimationType type) |
| | Selects all file paths that match the specified animation type. More...
|
| |
| static T | GetDefaultAnimParams< T > (Character character, AnimationType animType) |
| |
| static T | GetAnimParams< T > (Identifier speciesName, AnimationType animType, 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 void | ClearCache () |
| |
| static AnimationParams | Create (string fullPath, Identifier speciesName, AnimationType animationType, Type type) |
| |
| static T | Create< T > (string fullPath, Identifier speciesName, AnimationType animationType) |
| | Note: Overrides old animations, if found! More...
|
| |
| static Type | GetParamTypeFromAnimType (AnimationType type, bool isHumanoid) |
| |
|
| static string | ParseFootAngles (Dictionary< int, float > footAngles) |
| |
| static void | SetFootAngles (Dictionary< int, float > footAngles, string value) |
| |
|
| Identifier | SpeciesName [get] |
| |
| bool | IsGroundedAnimation [get] |
| |
| bool | IsSwimAnimation [get] |
| |
| float | MovementSpeed [get, set] |
| |
| float | CycleSpeed [get, set] |
| |
| float? | HeadAngle [get, set] |
| | In degrees. More...
|
| |
| float | HeadAngleInRadians = float.NaN [get] |
| |
| float? | TorsoAngle [get, set] |
| | In degrees. More...
|
| |
| float | TorsoAngleInRadians = float.NaN [get] |
| |
| float | HeadTorque [get, set] |
| |
| float | TorsoTorque [get, set] |
| |
| float | FootTorque [get, set] |
| |
| virtual AnimationType | AnimationType [get, protected set] |
| |
| float | ArmIKStrength [get, set] |
| |
| float | HandIKStrength [get, set] |
| |
| Memento< AnimationParams > | Memento = new Memento<AnimationParams>() [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 65 of file AnimationParams.cs.
◆ ClearCache()
| static void Barotrauma.AnimationParams.ClearCache |
( |
| ) |
|
|
static |
◆ ClearHistory()
| void Barotrauma.AnimationParams.ClearHistory |
( |
| ) |
|
◆ Create()
◆ Create< T >()
Note: Overrides old animations, if found!
- Type Constraints
-
| T | : | AnimationParams | |
| T | : | new() | |
Definition at line 323 of file AnimationParams.cs.
◆ Deserialize()
| bool Barotrauma.AnimationParams.Deserialize |
( |
| ) |
|
◆ FilterFilesByType()
| static IEnumerable<string> Barotrauma.AnimationParams.FilterFilesByType |
( |
IEnumerable< string > |
filePaths, |
|
|
AnimationType |
type |
|
) |
| |
|
static |
Selects all file paths that match the specified animation type.
Definition at line 174 of file AnimationParams.cs.
◆ GetAnimParams< T >()
| static T Barotrauma.AnimationParams.GetAnimParams< T > |
( |
Identifier |
speciesName, |
|
|
AnimationType |
animType, |
|
|
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 | : | AnimationParams | |
| T | : | new() | |
Definition at line 207 of file AnimationParams.cs.
◆ GetDefaultAnimParams< T >()
◆ GetDefaultFile()
◆ GetDefaultFileName()
◆ GetFolder()
| static string Barotrauma.AnimationParams.GetFolder |
( |
Identifier |
speciesName | ) |
|
|
static |
◆ GetParamTypeFromAnimType()
| static Type Barotrauma.AnimationParams.GetParamTypeFromAnimType |
( |
AnimationType |
type, |
|
|
bool |
isHumanoid |
|
) |
| |
|
static |
◆ GetRandomFilePath()
| static string Barotrauma.AnimationParams.GetRandomFilePath |
( |
IReadOnlyList< string > |
filePaths, |
|
|
AnimationType |
type |
|
) |
| |
|
static |
Selects a random filepath from multiple paths, matching the specified animation type.
Definition at line 166 of file AnimationParams.cs.
◆ Load()
◆ ParseFootAngles()
| static string Barotrauma.AnimationParams.ParseFootAngles |
( |
Dictionary< int, float > |
footAngles | ) |
|
|
staticprotected |
◆ Redo()
| void Barotrauma.AnimationParams.Redo |
( |
| ) |
|
◆ Serialize()
| bool Barotrauma.AnimationParams.Serialize |
( |
| ) |
|
◆ SetFootAngles()
| static void Barotrauma.AnimationParams.SetFootAngles |
( |
Dictionary< int, float > |
footAngles, |
|
|
string |
value |
|
) |
| |
|
staticprotected |
◆ StoreSnapshot()
| abstract void Barotrauma.AnimationParams.StoreSnapshot |
( |
| ) |
|
|
pure virtual |
◆ StoreSnapshot< T >()
◆ Undo()
| void Barotrauma.AnimationParams.Undo |
( |
| ) |
|
◆ UpdatePath()
| override void Barotrauma.AnimationParams.UpdatePath |
( |
ContentPath |
newPath | ) |
|
|
protectedvirtual |
◆ allAnimations
◆ AnimationType
◆ ArmIKStrength
| float Barotrauma.AnimationParams.ArmIKStrength |
|
getset |
◆ CycleSpeed
| float Barotrauma.AnimationParams.CycleSpeed |
|
getset |
◆ FootTorque
| float Barotrauma.AnimationParams.FootTorque |
|
getset |
◆ HandIKStrength
| float Barotrauma.AnimationParams.HandIKStrength |
|
getset |
◆ HeadAngle
| float? Barotrauma.AnimationParams.HeadAngle |
|
getset |
◆ HeadAngleInRadians
| float Barotrauma.AnimationParams.HeadAngleInRadians = float.NaN |
|
get |
◆ HeadTorque
| float Barotrauma.AnimationParams.HeadTorque |
|
getset |
◆ IsGroundedAnimation
| bool Barotrauma.AnimationParams.IsGroundedAnimation |
|
get |
◆ IsSwimAnimation
| bool Barotrauma.AnimationParams.IsSwimAnimation |
|
get |
◆ Memento
◆ MovementSpeed
| float Barotrauma.AnimationParams.MovementSpeed |
|
getset |
◆ SpeciesName
◆ TorsoAngle
| float? Barotrauma.AnimationParams.TorsoAngle |
|
getset |
◆ TorsoAngleInRadians
| float Barotrauma.AnimationParams.TorsoAngleInRadians = float.NaN |
|
get |
◆ TorsoTorque
| float Barotrauma.AnimationParams.TorsoTorque |
|
getset |