levelz-cpp 0.2.0
Loading...
Searching...
No Matches
LevelZ::Level Struct Reference

#include <level.hpp>

Inheritance diagram for LevelZ::Level:
LevelZ::Level2D LevelZ::Level3D

Public Member Functions

std::unordered_map< std::string, std::string > headers () const
 
std::vector< LevelObjectblocks () const
 
bool operator== (const Level &other) const
 
bool operator!= (const Level &other) const
 

Protected Attributes

std::unordered_map< std::string, std::string > _headers = {}
 
std::vector< LevelZ::LevelObject_blocks = {}
 

Detailed Description

Represents a LevelZ level.

Member Function Documentation

◆ blocks()

std::vector< LevelObject > LevelZ::Level::blocks ( ) const
inline

Gets the blocks in the level.

Returns
The blocks in the level.

◆ headers()

std::unordered_map< std::string, std::string > LevelZ::Level::headers ( ) const
inline

Gets the headers in the level.

Returns
The headers in the level.

◆ operator!=()

bool LevelZ::Level::operator!= ( const Level & other) const
inline

Compares two levels for inequality.

Parameters
otherThe other level to compare.
Returns
true if the levels are not equal, false if the levels are equal

◆ operator==()

bool LevelZ::Level::operator== ( const Level & other) const
inline

Compares two levels for equality.

Parameters
otherThe other level to compare.
Returns
true if the levels are equal, false if the levels are not equal

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