Jazz2::Actors::EventParamsWriter struct

Writes typed values into a packed event parameter buffer.

Counterpart of EventParamsReader for parameters built at runtime, in the packed little-endian layout of the level file.

Constructors, destructors, conversion operators

EventParamsWriter(std::uint8_t* params) explicit noexcept

Public functions

void SetUint8(std::int32_t offset, std::uint8_t value) noexcept
Writes an unsigned 8-bit value at the given byte offset.
void SetUint16(std::int32_t offset, std::uint16_t value) noexcept
Writes an unsigned 16-bit value at the given byte offset.
void SetInt16(std::int32_t offset, std::int16_t value) noexcept
Writes a signed 16-bit value at the given byte offset.
void SetUint32(std::int32_t offset, std::uint32_t value) noexcept
Writes an unsigned 32-bit value at the given byte offset.
void SetFloat(std::int32_t offset, float value) noexcept
Writes a 32-bit floating-point value at the given byte offset.