feat: Constraint 시스템에 NoPaneltyKey 추가
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user