<?php
class game {
public $arr = array();
function __construct() {
// загрузка настроек
$this->load_settings();
}
public function __set($name, $value) {
$this->arr[$name] = $value;
return true;
}
function load_settings() {
$settings = ini::array_ini(H.'/dark_war/files_ini/settings.ini');
$this->arr = array_merge($this->arr, $settings);
}
public function save_settings() {
return ini::save(H.'/dark_war/files_ini/settings.ini', $this->arr);
}
}
?>