The Battle for Wesnoth  1.15.1+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.theme_items during draw and we don’t want to have that an effect on the gamestate in this case.

Definition at line 233 of file synced_context.hpp.

Constructor & Destructor Documentation

◆ set_scontext_unsynced()

set_scontext_unsynced::set_scontext_unsynced ( )

Definition at line 517 of file synced_context.cpp.

Member Data Documentation

◆ leaver_

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

Definition at line 238 of file synced_context.hpp.


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