aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/rules/COC7/__init__.py
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-07-07 08:55:55 +0800
committer简律纯 <i@jyunko.cn>2024-07-07 08:55:55 +0800
commitc6f28bd75141da583bdd95e86d37ae5884276c55 (patch)
treebb7afbf0c26de76dac704ec254850302f7d632a6 /examples/rules/COC7/__init__.py
parentda32df814f9949c7172290dfb4770f7c64c28a5d (diff)
downloadHydroRollCore-c6f28bd75141da583bdd95e86d37ae5884276c55.tar.gz
HydroRollCore-c6f28bd75141da583bdd95e86d37ae5884276c55.zip
refactor!: change namespace<perf, feat, doc, dev>
Diffstat (limited to 'examples/rules/COC7/__init__.py')
-rw-r--r--examples/rules/COC7/__init__.py6
1 files changed, 4 insertions, 2 deletions
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):