protected function saveRules()
	{
		$rules = [];
		foreach ($this->rules as $name => $rule) {
			$rules[$name] = serialize($rule);
		}
		DiscHelper::saveToFile($rules, $this->ruleFile);
		
		$this->domain->const->generateAll();
	}