Public Member Functions | |
persist_choice (const persist_context &context, const std::string &name, int side_num) | |
virtual config | query_user (int) const |
virtual config | random_choice (int) const |
virtual std::string | description () const |
virtual bool | is_visible () const |
whether the choice is visible for the user like an advacement choice a non-visible choice is for example get_global_variable More... | |
Public Member Functions inherited from mp_sync::user_choice | |
virtual | ~user_choice () |
Public Attributes | |
const persist_context & | ctx |
std::string | var_name |
int | side |
Definition at line 34 of file persist_var.cpp.
|
inline |
Definition at line 38 of file persist_var.cpp.
|
inlinevirtual |
Reimplemented from mp_sync::user_choice.
Definition at line 55 of file persist_var.cpp.
|
inlinevirtual |
whether the choice is visible for the user like an advacement choice a non-visible choice is for example get_global_variable
Reimplemented from mp_sync::user_choice.
Definition at line 59 of file persist_var.cpp.
Implements mp_sync::user_choice.
Definition at line 43 of file persist_var.cpp.
References config::add_child(), persist_context::get_var(), and side.
Implements mp_sync::user_choice.
Definition at line 51 of file persist_var.cpp.
const persist_context& persist_choice::ctx |
Definition at line 35 of file persist_var.cpp.
int persist_choice::side |
Definition at line 37 of file persist_var.cpp.
Referenced by query_user().
std::string persist_choice::var_name |
Definition at line 36 of file persist_var.cpp.