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_context > | leaver_ |
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 229 of file synced_context.hpp.
set_scontext_unsynced::set_scontext_unsynced | ( | ) |
Definition at line 487 of file synced_context.cpp.
|
private |
Definition at line 235 of file synced_context.hpp.