feat: Constraint 시스템에 NoPaneltyKey 추가

This commit is contained in:
2024-06-08 16:15:19 +00:00
parent ad223a9c75
commit 9415d79a3a
3 changed files with 180 additions and 69 deletions
@@ -2,6 +2,8 @@
namespace sammo\Constraint;
use sammo\Enums\PenaltyKey;
class ConstraintHelper{
static function AdhocCallback(callable $callback):array{
@@ -176,6 +178,10 @@ class ConstraintHelper{
return [__FUNCTION__];
}
static function NoPanelty(PenaltyKey $penaltyKey):array{
return [__FUNCTION__, $penaltyKey];
}
static function OccupiedCity(bool $allowNeutral=false):array{
return [__FUNCTION__, $allowNeutral];
}