The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Public Attributes | List of all members
end_level_data Struct Reference

Additional information on the game outcome which can be provided by WML. More...

#include <game_end_exceptions.hpp>

Public Member Functions

 end_level_data ()
 
void write (config &cfg) const
 
void read (const config &cfg)
 
config to_config () const
 
config to_config_full () const
 Includes the transient data. More...
 

Public Attributes

bool prescenario_save
 Should a prescenario be created the next game? More...
 
bool replay_save
 Should a replay save be made? More...
 
bool proceed_to_next_level
 whether to proceed to the next scenario, equals is_victory in sp. More...
 
bool is_victory
 
transient_end_level transient
 

Detailed Description

Additional information on the game outcome which can be provided by WML.

Definition at line 92 of file game_end_exceptions.hpp.

Constructor & Destructor Documentation

◆ end_level_data()

end_level_data::end_level_data ( )

Definition at line 26 of file game_end_exceptions.cpp.

Member Function Documentation

◆ read()

void end_level_data::read ( const config cfg)

◆ to_config()

config end_level_data::to_config ( ) const

Definition at line 51 of file game_end_exceptions.cpp.

References write().

◆ to_config_full()

config end_level_data::to_config_full ( ) const

Includes the transient data.

Definition at line 58 of file game_end_exceptions.cpp.

References write().

Referenced by impl_end_level_data_get().

◆ write()

void end_level_data::write ( config cfg) const

Definition at line 35 of file game_end_exceptions.cpp.

References is_victory, prescenario_save, proceed_to_next_level, and replay_save.

Referenced by to_config(), and to_config_full().

Member Data Documentation

◆ is_victory

bool end_level_data::is_victory

◆ prescenario_save

bool end_level_data::prescenario_save

◆ proceed_to_next_level

bool end_level_data::proceed_to_next_level

◆ replay_save

bool end_level_data::replay_save

◆ transient

transient_end_level end_level_data::transient

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