diff options
| author | 2024-07-07 08:55:55 +0800 | |
|---|---|---|
| committer | 2024-07-07 08:55:55 +0800 | |
| commit | c6f28bd75141da583bdd95e86d37ae5884276c55 (patch) | |
| tree | bb7afbf0c26de76dac704ec254850302f7d632a6 /examples | |
| parent | da32df814f9949c7172290dfb4770f7c64c28a5d (diff) | |
| download | HydroRollCore-c6f28bd75141da583bdd95e86d37ae5884276c55.tar.gz HydroRollCore-c6f28bd75141da583bdd95e86d37ae5884276c55.zip | |
refactor!: change namespace<perf, feat, doc, dev>
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): |
