24 m_volume = p_dsSound.m_volume;
37 if (
this == &p_dsSound) {
64 m_volume = *(
MxS32*) p_source;
65 p_source +=
sizeof(m_volume);
73 totalSizeOnDisk +=
sizeof(m_volume);
75 m_sizeOnDisk =
sizeof(m_volume);
76 return totalSizeOnDisk;
[AI] Represents an action deserialized from SI chunks, holding key animation or script parameters suc...
MxU16 m_type
[AI] Object type enum (see Type) as read from data or set in code. [AI]
[AI] Represents a sound action extracted from an SI script and used in the data-driven action system.
MxDSSound()
[AI] Constructs a MxDSSound object with default values (type set to e_sound, default volume).
void Deserialize(MxU8 *&p_source, MxS16 p_unk0x24) override
[AI] Deserializes this object from binary SI file data, extracting volume after base class fields.
MxU32 GetSizeOnDisk() override
[AI] Returns the total size the action will occupy on disk, including media action and volume.
void CopyFrom(MxDSSound &p_dsSound)
[AI] Copies properties from another MxDSSound (volume and type).
MxDSAction * Clone() override
[AI] Creates a duplicate of this MxDSSound instance.
MxDSSound & operator=(MxDSSound &p_dsSound)
[AI] Assignment operator.
~MxDSSound() override
[AI] Destructor for cleanup (none specifically required, present for consistency).
#define DECOMP_SIZE_ASSERT(T, S)