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 advancement 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 32 of file persist_var.cpp.
|
inline |
Definition at line 36 of file persist_var.cpp.
|
inlinevirtual |
Reimplemented from mp_sync::user_choice.
Definition at line 53 of file persist_var.cpp.
References _().
|
inlinevirtual |
whether the choice is visible for the user like an advancement choice a non-visible choice is for example get_global_variable
Reimplemented from mp_sync::user_choice.
Definition at line 60 of file persist_var.cpp.
|
inlinevirtual |
Implements mp_sync::user_choice.
Definition at line 41 of file persist_var.cpp.
References config::add_child(), ctx, persist_context::get_var(), side, and var_name.
|
inlinevirtual |
Implements mp_sync::user_choice.
Definition at line 49 of file persist_var.cpp.
const persist_context& persist_choice::ctx |
Definition at line 33 of file persist_var.cpp.
Referenced by query_user().
int persist_choice::side |
Definition at line 35 of file persist_var.cpp.
Referenced by query_user().
std::string persist_choice::var_name |
Definition at line 34 of file persist_var.cpp.
Referenced by query_user().