Skip to main content

Module m2

Module m2 

Source

Structs§

AnimationTrackBase
AnimationTrackF32
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
AnimationTrackI16
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
AnimationTrackM2CameraSpline
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
AnimationTrackM2CompatQuaternion
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
AnimationTrackQuaternion
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
AnimationTrackU8
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
AnimationTrackU16
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
AnimationTrackVector3f
instantiate=Vector3f;CompatQuaternion;Quaternion;i16;u8;u16;f32;CameraSpline
Attachment
Batch
Bone
BoneFlag
Bit flags. Combine with |, test with BoneFlag::contains.
BoneOverride
One bone’s replacement transform, from a .bone file.
BoneOverrideSet
A whole .bone file: the skeleton edits one customization choice needs.
Box
BoxShape
BOXS — an oriented box. The client turns it straight into a polytope via CPhysicsBoxShapeDef::SetPolytopeData(frame, halfExtents).
Camera
CameraSpline
CapsuleShape
CAPS — a capsule between two local points.
ColorAnimation
ColorBGRA
CompatQuaternion
DebugOcclusionData
DetailedLightData
DistanceFadeData
DistanceJoint
DSTJ — holds two anchors a fixed distance apart, version 2+.
EdgeFadeData
Event
Extent
GlobalFlag
Bit flags. Combine with |, test with GlobalFlag::contains.
GlobalFlags
GlobalSequence
KeySpanRef
One sequence’s slice of a key array, as the file writes it: a count and an offset into whichever file holds that sequence’s keys.
Light
LodProfile
Material
MaterialFlag
Bit flags. Combine with |, test with MaterialFlag::contains.
Model
Parser
ParticleAnimationTrackVector2f
ParticleAnimationTrackVector3f
ParticleEmitter
ParticleEmitterExtension
ParticleFlag
Bit flags. Combine with |, test with ParticleFlag::contains.
ParticleGeosetData
PhysicsBody
One rigid body, bound to a single model bone — BODY/BDY2/BDY3/BDY4.
PhysicsCollision
PhysicsData
A whole .phys file — Blizzard’s Domino rigid-body setup for a model, either a .phys sibling or an M2’s inline PFDC chunk.
PhysicsFrame
The affine frame the Domino chunks store: three basis columns and an origin, twelve floats in all.
PhysicsJoint
JOIN — connects two bodies with the joint named by @ref jointType.
PhysicsShape
One collision shape reference — SHAP/SHP2. Points at an entry of the box/capsule/sphere/polytope array named by @ref shapeType.
PhysicsTuning
PHYV — six floats that overwrite the head of a tuning block the client otherwise fills with constants. Version 1+.
PhysicsUnknownChunk
A .phys chunk this library does not know, kept verbatim so a parse/write cycle does not drop it.
PivotDisplacementData
One DPIV (pivot displacement) record, 32 bytes.
PolytopeHalfEdge
One half-edge of a polytope — Domino’s dmSubEdge, four bytes.
PolytopeShape
PLYT — a convex hull, version 3+. Domino’s dmPolytope.
PrismaticJoint
PRSJ/PRS2 — a sliding joint, version 2+.
RevoluteJoint
REVJ/REV2 — a hinge, version 2+.
RibbonEmitter
Sequence
SequenceFlag
Bit flags. Combine with |, test with SequenceFlag::contains.
SerializeResult
ShadowBatch
ShoulderJoint
SHOJ/SHJ2 — a twist-and-cone joint, the one that chains cloth.
SkinProfile
SkinSection
SphereShape
SPHS — a sphere at a local point.
SphericalJoint
SPHJ — a ball joint between two anchor points.
Texture
TextureTransform
TextureWeight
TexturedLightData
Vertex
WaterfallData
WeldJoint
WELJ/WLJ2/WLJ3 — a soft rigid connection. Zero frequency means the axis is solved as a hard constraint.
WriteOptions
Writer

Enums§

InterpolationType
ParticleBlending
ParticleEmitterType
PhysicsBodyType
How the client drives a body — the value stored in BODY is inverted relative to Domino’s own dmBodyType.
PhysicsJointType
Which joint chunk a PhysicsJoint indexes into.
PhysicsShapeType
Which shape chunk a PhysicsShape indexes into.