diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/brp_character.py | 2 | ||||
| -rw-r--r-- | examples/rules/COC7/__init__.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/brp_character.py b/examples/brp_character.py index cc3bfcd..3213fa6 100644 --- a/examples/brp_character.py +++ b/examples/brp_character.py @@ -1,5 +1,5 @@ import inspect -from hrc.development import Character +from hrc.dev import Character from typing import Literal, Union, Optional diff --git a/examples/rules/COC7/__init__.py b/examples/rules/COC7/__init__.py index 25acdaa..128c312 100644 --- a/examples/rules/COC7/__init__.py +++ b/examples/rules/COC7/__init__.py @@ -12,8 +12,10 @@ core = Core() class COC7(Rule): - attr: Attributes = Depends() # 必须实现一个继承自 Character.Attribute 的子类 - wiki: Wiki = Depends() # 可选实现一个 Wiki 类 + # 规则、指令、词条,必须至少实现任意一个 + attr: Attributes = Depends() # CharacterCard.Attribute + wiki: Wiki = Depends() # Wiki + cmd: Command = Depends() # Command @core.event_postprocessor_hook async def auto_card(self): |
