diff options
| author | 2023-12-05 15:20:12 +0800 | |
|---|---|---|
| committer | 2023-12-05 15:20:12 +0800 | |
| commit | d3076462c53afc848622052611a2ed7c241434e9 (patch) | |
| tree | 2b0ee095438f929a27fd0af42e40554c6e1ce45d /src/hydrorollcore | |
| parent | a5f3f08f9ae4465b723ed827c72dada74fdb473c (diff) | |
| download | infini-d3076462c53afc848622052611a2ed7c241434e9.tar.gz infini-d3076462c53afc848622052611a2ed7c241434e9.zip | |
:sparkles: 依照文档增加Rule基类参数
Diffstat (limited to 'src/hydrorollcore')
| -rw-r--r-- | src/hydrorollcore/rule.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hydrorollcore/rule.py b/src/hydrorollcore/rule.py index a7e5d9a7..a1b07cb9 100644 --- a/src/hydrorollcore/rule.py +++ b/src/hydrorollcore/rule.py @@ -16,6 +16,9 @@ class RuleLoadType(Enum): class Rule(metaclass=ABCMeta): """规则基类""" + name: str + priority: int = 0 + @abstractmethod def __init__(self): raise NotImplementedError |
