91bool IsOfType(
const std::filesystem::path& path);
140 u32 num_positions = 0;
143static_assert(
sizeof(RHeader) == 0x8);
153static_assert(
sizeof(RPosition) == 0x18);
155struct RPositionData {
157 std::vector<RPosition> positions;
162RPositionData Parse(Reader& f);
Provides functions and classes for handling binary data.
constexpr u32 FourCC(const char(&str)[5]) noexcept
Generates a numeric four character code from a given string.
Definition data.hpp:36
3D vector template with packed storage
Definition fixed_type.hpp:163
std::uint16_t u16
16-bit unsigned integer
Definition fixed_type.hpp:62
std::int16_t i16
16-bit signed integer
Definition fixed_type.hpp:63
float f32
32-bit floating point
Definition fixed_type.hpp:59
std::uint32_t u32
32-bit unsigned integer
Definition fixed_type.hpp:60
#define NNL_PACK(...)
A structure packing directive.
Definition fixed_type.hpp:41
f32 rotation
Rotation angle around the Y axis in degrees [-180.0, 180.0f].
Definition posd.hpp:51
glm::vec3 position
The 3D coordinates (x, y, z) of the position.
Definition posd.hpp:49
f32 radius
May affect the size of a mission circle.
Definition posd.hpp:50
Represents a spawn position in the world.
Definition posd.hpp:46
std::vector< Position > PositionData
A vector of Position structs.
Definition posd.hpp:61
PositionData Import(BufferView buffer)
Parses a binary file and converts it to PositionData.
Buffer Export(const PositionData &posd)
Converts a spawn position config to a binary file representation.
bool IsOfType(BufferView buffer)
Tests if the provided file is a spawn position config.
std::vector< SPosition > Convert(const PositionData &posd)
Converts a spawn position config into a format that is more suitable for further exporting into other...
constexpr u32 kMagicBytes
Magic bytes.
Definition posd.hpp:136
Provides classes for reading and writing binary data to and from various sources.
Contains functions and structures for working with spawn position configs.
Definition posd.hpp:31
Definition exception.hpp:56
Provides data structures for representing essential components of a 3D asset.