Exemple #1
1
 public function buildRules(RulesChecker $rules)
 {
     $rules->add([$this, 'ruleRoleChange']);
     $rules->addUpdate([$this, 'ruleMatchingModified']);
     $rules->addDelete([$this, 'ruleNoCharacters']);
     return $rules;
 }
Exemple #2
0
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn('character_id', 'characters'));
     $rules->addDelete([$this, 'ruleNoCharacter']);
     $rules->addDelete([$this, 'ruleNoAttributes']);
     return $rules;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 public function buildRules(RulesChecker $rules)
 {
     $rules->addDelete([$this, 'ruleNoCharacters']);
     return $rules;
 }