EventParamsWriter struct
#include <Jazz2/Actors/ActorBase.h>
Writes typed values into a packed event parameter buffer.
The counterpart of EventParamsReader for parameters that are built at runtime instead of being loaded from a level file. Multi-byte values are stored unaligned and little-endian, which is the packed layout of the level file, so both sources decode identically on any platform.
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.