NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
posd.hpp File Reference

Contains functions and structures for working with spawn position configs. More...

#include <vector>
#include "NNL/common/io.hpp"
#include "NNL/simple_asset/sasset3d.hpp"
#include "NNL/utility/data.hpp"

Go to the source code of this file.

Classes

struct  nnl::posd::Position
 Represents a spawn position in the world. More...

Namespaces

namespace  nnl
namespace  nnl::posd
 Contains functions and structures for working with spawn position configs.

Typedefs

using nnl::posd::PositionData = std::vector<Position>
 A vector of Position structs.

Functions

std::vector< SPositionnnl::posd::Convert (const PositionData &posd)
 Converts a spawn position config into a format that is more suitable for further exporting into other formats.
PositionData nnl::posd::Convert (const std::vector< SPosition > &positions)
 Converts a vector of spawn positions to a spawn position config.
bool nnl::posd::IsOfType (BufferView buffer)
 Tests if the provided file is a spawn position config.
PositionData nnl::posd::Import (BufferView buffer)
 Parses a binary file and converts it to PositionData.
Buffer nnl::posd::Export (const PositionData &posd)
 Converts a spawn position config to a binary file representation.

Variables

constexpr u32 nnl::posd::raw::kMagicBytes = utl::data::FourCC("POSD")
 Magic bytes.

Detailed Description

Contains functions and structures for working with spawn position configs.

See also
nnl::posd::PositionData
nnl::posd::IsOfType
nnl::posd::Import
nnl::posd::Export
nnl::posd::Convert