The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
set_scontext_unsynced Class Reference

An object to leave the synced context during draw or unsynced wml items when we don’t know whether we are in a synced context or not. More...

#include <synced_context.hpp>

Public Member Functions

 set_scontext_unsynced ()
 

Private Attributes

const std::unique_ptr< leave_synced_contextleaver_
 

Detailed Description

An object to leave the synced context during draw or unsynced wml items when we don’t know whether we are in a synced context or not.

if we are in a synced context we leave the synced context, otherwise it has no effect. we need This because we might call lua's wesnoth.interface.game_display during draw and we don’t want to have that an effect on the gamestate in this case.

Definition at line 255 of file synced_context.hpp.

Constructor & Destructor Documentation

◆ set_scontext_unsynced()

set_scontext_unsynced::set_scontext_unsynced ( )

Definition at line 503 of file synced_context.cpp.

Member Data Documentation

◆ leaver_

const std::unique_ptr<leave_synced_context> set_scontext_unsynced::leaver_
private

Definition at line 261 of file synced_context.hpp.


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