22 #ifndef QDENGINE_QDCORE_QD_MINIGAME_CONFIG_H 23 #define QDENGINE_QDCORE_QD_MINIGAME_CONFIG_H 25 #include "common/formats/ini-file.h" 26 #include "common/path.h" 56 return (_name == prm._name);
58 bool operator == (
const char *str)
const {
59 return !strcmp(str, name());
72 const char *name()
const {
75 void set_name(
const char *name) {
86 const char *data_string()
const {
87 return _data_string.c_str();
89 void set_data_string(
const char *str) {
93 const char *comment()
const {
94 return _comment.c_str();
96 void set_comment(
const char *str) {
100 int data_count()
const {
103 void set_data_count(
int cnt) {
113 bool is_data_valid()
const {
114 return _is_data_valid;
160 #endif // QDENGINE_QDCORE_QD_MINIGAME_CONFIG_H Конфигурационные данные для миниигры.
Definition: qd_minigame_config.h:50
data_type_t
Тип данных.
Definition: qd_minigame_config.h:63
данные - имя файла
Definition: qd_minigame_config.h:67
данные - имя объекта из игровой сцены
Definition: qd_minigame_config.h:69
XML тег.
Definition: xml_tag.h:33
Базовый класс для игровых ресурсов.
Definition: console.h:28
bool load_ini(Common::INIFile &ini, const Common::Path &ini_file, const char *ini_section)
Загрузка данных из .ini файла.
bool validate_data()
Проверяет валидность данных.
Definition: ini-file.h:58
bool load_script(const xml::tag *p)
Загрузка данных из скрипта.
bool save_script(Common::WriteStream &fh, int indent=0) const
Запись данных в скрипт.
данные - строка
Definition: qd_minigame_config.h:65