Skip to main content

RopePersistManager.RopeData

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Snapshot of an UltimateRope (third party Ultimate Rope Editor) with its skin mesh and link transforms. Nothing in this build fills the manager's map.

Constructors​

MemberWhat it is
RopeData(UltimateRope rope)Creates a RopePersistManager.RopeData from rope.

Fields​

MemberWhat it is
bool[][] m_aaJointsBrokenWhich joints were broken, per link.
bool[][] m_aaJointsProcessedWhich joints were processed, per link.
RopePersistManager.RopeData.TransformInfo[] m_aLinkTransformInfoSaved transform of each rope link.
Matrix4x4[] m_amtxSkinBindPosesCopy of the skin mesh bind poses.
int[] m_anSkinTrianglesRopeCopy of the triangles in submesh 0 (the rope).
int[] m_anSkinTrianglesSectionsCopy of the triangles in submesh 1 (the sections).
BoneWeight[] m_aSkinBoneWeightsCopy of the skin mesh bone weights.
Vector2[] m_av2SkinMappingCopy of the skin mesh UVs.
Vector3[] m_av3SkinVerticesCopy of the skin mesh vertices.
Vector4[] m_av4SkinTangentsCopy of the skin mesh tangents, or null if it has none.
bool m_bDeletedWhether the rope was deleted.
bool m_bSkinWhether the rope has a SkinnedMeshRenderer, which decides if skin data is copied.
Dictionary<string, object> m_hashFieldName2ValueSaved rope field values by field name.
UltimateRope m_ropeThe rope this snapshot is of.
RopePersistManager.RopeData.TransformInfo m_transformInfoRopeSaved transform of the rope object.
RopePersistManager.RopeData.TransformInfo[] m_transformInfoSegmentsSaved transform of each rope node.
RopePersistManager.RopeData.TransformInfo m_transformInfoStartSaved transform of the rope's start object.

Methods​

MemberWhat it is
static void MakeSkinDeepCopy(Vector3[] av3VerticesSource, Vector2[] av2MappingSource, Vector4[] av4TangentsSource, BoneWeight[] aBoneWeightsSource, int[] anTrianglesRopeSource, int[] anTrianglesSectionsSource, Matrix4x4[] aBindPosesSource, Vector3[] av3VerticesDestiny, Vector2[] av2MappingDestiny, Vector4[] av4TangentsDestiny, BoneWeight[] aBoneWeightsDestiny, int[] anTrianglesRopeDestiny, int[] anTrianglesSectionsDestiny, Matrix4x4[] aBindPosesDestiny)Copies skin mesh arrays (vertices, UVs, tangents, weights, triangles, bind poses) into the given arrays.

Used in​

Members of other types that take, return or hold a RopeData: