#include "global.hpp"
#include "game_data.hpp"
#include "log.hpp"
#include "persist_context.hpp"
#include "persist_manager.hpp"
#include "persist_var.hpp"
#include "play_controller.hpp"
#include "synced_user_choice.hpp"
#include "resources.hpp"
#include "util.hpp"
#include "variable.hpp"
#include <cassert>
Go to the source code of this file.
Classes | |
struct | persist_choice |
Macros | |
#define | DBG_PERSIST LOG_STREAM(debug, log_persist) |
#define | ERR_PERSIST LOG_STREAM(err, log_persist) |
Functions | |
static void | get_global_variable (persist_context &ctx, const vconfig &pcfg) |
static void | clear_global_variable (persist_context &ctx, const vconfig &pcfg) |
static void | set_global_variable (persist_context &ctx, const vconfig &pcfg) |
void | verify_and_get_global_variable (const vconfig &pcfg) |
void | verify_and_set_global_variable (const vconfig &pcfg) |
void | verify_and_clear_global_variable (const vconfig &pcfg) |
#define DBG_PERSIST LOG_STREAM(debug, log_persist) |
Definition at line 31 of file persist_var.cpp.
Referenced by verify_and_get_global_variable().
#define ERR_PERSIST LOG_STREAM(err, log_persist) |
Definition at line 32 of file persist_var.cpp.
Referenced by get_global_variable(), verify_and_clear_global_variable(), verify_and_get_global_variable(), and verify_and_set_global_variable().
|
static |
Definition at line 91 of file persist_var.cpp.
References persist_context::clear_var().
Referenced by set_global_variable(), and verify_and_clear_global_variable().
|
static |
Definition at line 62 of file persist_var.cpp.
References config::child(), config::child_count(), game_data::clear_variable(), resources::controller, ERR_PERSIST, resources::gamedata, mp_sync::get_user_choice(), i, game_data::set_variable(), and config::attribute_value::to_int().
Referenced by verify_and_get_global_variable().
|
static |
Definition at line 97 of file persist_var.cpp.
References config::add_child(), config::child(), config::child_count(), clear_global_variable(), resources::gamedata, game_data::get_variables(), i, pack_scalar(), and persist_context::set_var().
Referenced by verify_and_set_global_variable().
Definition at line 202 of file persist_var.cpp.
References clear_global_variable(), resources::controller, config::attribute_value::empty(), ERR_PERSIST, persist_manager::get_context(), vconfig::has_attribute(), LOG_PERSIST, resources::persist, config::attribute_value::str(), resources::teams, config::attribute_value::to_int(), schema_validation::valid, and persist_context::valid().
Referenced by game_events::WML_HANDLER_FUNCTION().
Definition at line 123 of file persist_var.cpp.
References resources::controller, DBG_PERSIST, config::attribute_value::empty(), ERR_PERSIST, persist_manager::get_context(), get_global_variable(), vconfig::has_attribute(), LOG_PERSIST, resources::persist, config::attribute_value::str(), resources::teams, config::attribute_value::to_int(), schema_validation::valid, and persist_context::valid().
Referenced by game_events::WML_HANDLER_FUNCTION().
Definition at line 159 of file persist_var.cpp.
References resources::controller, config::attribute_value::empty(), ERR_PERSIST, persist_manager::get_context(), vconfig::has_attribute(), LOG_PERSIST, resources::persist, set_global_variable(), config::attribute_value::str(), resources::teams, schema_validation::valid, and persist_context::valid().
Referenced by game_events::WML_HANDLER_FUNCTION().