PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
pixelbullet::Node::Format Struct Reference

Formatting options for YAML serialization. More...

#include <node.h>

Public Member Functions

constexpr Format (int s, char nl, char spc, bool inline_arr)
std::string indentation (const int indent_level) const

Public Attributes

int spaces_per_indent
 Number of spaces per indent level.
char new_line
 New line character.
char space
 Space character.
bool inline_arrays
 Flag to inline arrays.

Static Public Attributes

static const Format authoring { 2, '\n', ' ', true }
 Predefined canonical format for authored YAML assets.
static const Format beautified { 2, '\n', ' ', true }
 Predefined beautified format.
static const Format minified { 0, '\0', ' ', false }
 Predefined minified format.

Detailed Description

Formatting options for YAML serialization.

Member Data Documentation

◆ authoring

const Node::Format pixelbullet::Node::Format::authoring { 2, '\n', ' ', true }
static

Predefined canonical format for authored YAML assets.

◆ beautified

const Node::Format pixelbullet::Node::Format::beautified { 2, '\n', ' ', true }
static

Predefined beautified format.

◆ inline_arrays

bool pixelbullet::Node::Format::inline_arrays

Flag to inline arrays.

◆ minified

const Node::Format pixelbullet::Node::Format::minified { 0, '\0', ' ', false }
static

Predefined minified format.

◆ new_line

char pixelbullet::Node::Format::new_line

New line character.

◆ space

char pixelbullet::Node::Format::space

Space character.

◆ spaces_per_indent

int pixelbullet::Node::Format::spaces_per_indent

Number of spaces per indent level.


The documentation for this struct was generated from the following files: