|
static FishRagdollParams | GetDefaultRagdollParams (Character character) |
|
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 > (Character character) |
|
static T | GetDefaultRagdollParams< T > (Identifier speciesName, CharacterParams characterParams, ContentPackage contentPackage) |
|
static T | GetDefaultRagdollParams< T > (Identifier speciesName, XElement characterRootElement, ContentPackage contentPackage) |
|
static T | GetRagdollParams< T > (Identifier speciesName, Identifier ragdollSpecies, Either< string, ContentPath > file, ContentPackage contentPackage) |
|
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!
|
|
static void | ClearCache () |
|
|
bool | Save (string fileNameWithoutExtension=null) |
|
void | Apply () |
| Applies the current properties to the xml definition without saving to file.
|
|
override bool | Reset (bool forceReload=false) |
| Resets the current properties to the xml (stored in memory). Force reload reloads the file from disk.
|
|
bool | Deserialize (XElement element=null, bool alsoChildren=true, bool recursive=true) |
|
bool | Serialize (XElement element=null, bool alsoChildren=true, bool recursive=true) |
|
void | TryApplyVariantScale (XDocument variantFile) |
|
void | StoreSnapshot () |
|
void | Undo () |
|
void | Redo () |
|
void | ClearHistory () |
|
virtual bool | Save (string fileNameWithoutExtension=null, System.Xml.XmlWriterSettings settings=null) |
|
void | StoreSnapshot () |
|
void | Undo () |
|
void | Redo () |
|
void | ClearHistory () |
|
const float | MIN_SCALE = 0.1f |
|
const float | MAX_SCALE = 2 |
|
IEnumerable< SubParam > | GetAllSubParams () |
|
override void | UpdatePath (ContentPath fullPath) |
|
bool | Load (ContentPath file, Identifier speciesName) |
|
void | CreateColliders () |
|
void | CreateLimbs () |
|
void | CreateJoints () |
|
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) |
|
ContentXElement | rootElement |
|
XDocument | doc |
|
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] |
| Can be used for scaling the textures without having to readjust the entire ragdoll. Note that we'll still have to readjust the source rects and the colliders sizes, unless we also adjust SourceRectScale. E.g. for upscaling the textures 2x, set TextureScale to 0.5 and SourceRectScale to 2.
|
|
float | SourceRectScale [get, set] |
| Multiplies both the position and the size of the source rects. Used for scaling the textures when we cannot/don't want to touch the source rect definitions (e.g. on variants).
|
|
float | ColliderHeightFromFloor [get, set] |
|
float | ImpactTolerance [get, set] |
|
CanEnterSubmarine | 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 | FileNameWithoutExtension [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] |
|
Memento< T > | Memento [get] |
|