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 (int8_t s, char nl, char spc, bool inlineArr)
 
std::string GetIndentation (int8_t indentLevel) const
 

Public Attributes

int8_t spacesPerIndent
 Number of spaces per indent level.
 
char newLine
 New line character.
 
char space
 Space character.
 
bool inlineArrays
 Flag to inline arrays.
 

Static Public Attributes

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

◆ beautified

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

Predefined beautified format.

◆ inlineArrays

bool pixelbullet::Node::Format::inlineArrays

Flag to inline arrays.

◆ minified

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

Predefined minified format.

◆ newLine

char pixelbullet::Node::Format::newLine

New line character.

◆ space

char pixelbullet::Node::Format::space

Space character.

◆ spacesPerIndent

int8_t pixelbullet::Node::Format::spacesPerIndent

Number of spaces per indent level.


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