PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
LevelData Struct Reference

Level data structure. Contains all available settings and element lists on the level. More...

#include <lvl_filedata.h>

Public Member Functions

bool eventIsExist (PGESTRING title)
 Checks is event with specified title exist in this level. More...
 
bool layerIsExist (PGESTRING title)
 Checks is layer with specified title exist in this level. More...
 

Public Attributes

int stars
 Total number of stars on the level.
 
bool ReadFileValid
 Is file parsed correctly, false if some error is occouped.
 
PGESTRING ERROR_info
 Error messsage.
 
PGESTRING ERROR_linedata
 Line data where error was occouped.
 
int ERROR_linenum
 Number of line where error was occouped.
 
PGESTRING LevelName
 Understandable name of the level.
 
PGELIST< LevelSectionsections
 Sections settings array.
 
PGELIST< PlayerPointplayers
 Player spawn points array.
 
PGELIST< LevelBlockblocks
 Array of all presented Blocks in this level.
 
unsigned int blocks_array_id
 Last used block's array ID.
 
PGELIST< LevelBGObgo
 Array of all presented Background objects in this level.
 
unsigned int bgo_array_id
 Last used Background object array ID.
 
PGELIST< LevelNPCnpc
 Array of all presented NPCs in this level.
 
unsigned int npc_array_id
 Last used NPC's array ID.
 
PGELIST< LevelDoordoors
 Array of all presented Warp Entries in this level.
 
unsigned int doors_array_id
 Last used warp's array ID.
 
PGELIST< LevelPhysEnvphysez
 Array of all presented Physical Environment Zones in this level.
 
unsigned int physenv_array_id
 Last used Physical Environment Zone's array ID.
 
PGELIST< LevelLayerlayers
 Array of all presented layers in this level.
 
unsigned int layers_array_id
 Last used Layer's array ID.
 
PGELIST< LevelSMBX64Eventevents
 Array of all presented events in this level.
 
unsigned int events_array_id
 Last used Event's array ID.
 
MetaData metaData
 Meta-data: Position bookmarks, Auto-Script configuration, etc., Crash meta-data, etc.
 
int CurSection
 ID of currently editing section.
 
bool playmusic
 is music playing button pressed?
 
bool modified
 Is level was modified since open?
 
bool untitled
 Is this level made from scratch and was not saved into file?
 
bool smbx64strict
 
PGESTRING filename
 Recent file name since file was opened.
 
PGESTRING path
 Recent file path where file was located since it was opened.
 

Detailed Description

Level data structure. Contains all available settings and element lists on the level.

Member Function Documentation

bool LevelData::eventIsExist ( PGESTRING  title)

Checks is event with specified title exist in this level.

Parameters
titleEvent name which need to check for existsing
Returns
true if requested event is exists
bool LevelData::layerIsExist ( PGESTRING  title)

Checks is layer with specified title exist in this level.

Parameters
titleLayer name which need to check for existsing
Returns
true if requested event is exists

Member Data Documentation

bool LevelData::smbx64strict

Enable SMBX64 Standard restrictions (disable unsupported features and warn about limit exiting)


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