public function buildRules(RulesChecker $rules) { $rules->add([$this, 'ruleRoleChange']); $rules->addUpdate([$this, 'ruleMatchingModified']); $rules->addDelete([$this, 'ruleNoCharacters']); return $rules; }
public function buildRules(RulesChecker $rules) { $rules->add($rules->existsIn('character_id', 'characters')); $rules->addDelete([$this, 'ruleNoCharacter']); $rules->addDelete([$this, 'ruleNoAttributes']); return $rules; }
public function buildRules(RulesChecker $rules) { $rules->add($rules->existsIn('faction_id', 'factions')); $rules->add($rules->existsIn('group_id', 'groups')); $rules->add($rules->existsIn('belief_id', 'believes')); $rules->add($rules->existsIn('world_id', 'worlds')); $rules->addDelete([$this, 'ruleNoConditions']); $rules->addDelete([$this, 'ruleNoItems']); $rules->addDelete([$this, 'ruleNoPowers']); $rules->addDelete([$this, 'ruleNoSkills']); $rules->addDelete([$this, 'ruleNoSpells']); return $rules; }
public function buildRules(RulesChecker $rules) { $rules->addDelete([$this, 'ruleNoCharacters']); return $rules; }