diff options
| author | 2023-10-07 02:58:53 +0800 | |
|---|---|---|
| committer | 2023-10-07 02:58:53 +0800 | |
| commit | 956e7e7e98778993131fe5c03578ae46800dd2a3 (patch) | |
| tree | 47b39e6be14994f02f5230b513820dce7e4882a7 /README.md | |
| parent | e66ce466e59aca6a8b25b7e82f7ba809cc9b2eaa (diff) | |
| download | infini-956e7e7e98778993131fe5c03578ae46800dd2a3.tar.gz infini-956e7e7e98778993131fe5c03578ae46800dd2a3.zip | |
chore: update readmev0.1.0-rc1
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -26,7 +26,7 @@ ``` shell git clone https://github.com/HydroRoll-Team/HydroRollCore.git cd HydroRollCore -poetry install --no-dev +pdm install # 或者使用pip # pip install HydroRollCore ``` @@ -35,15 +35,16 @@ poetry install --no-dev ``` shell mkdir myrules && cd myrules && mkdir rule1 -echo.> config.toml && echo.> __init__.py :: 创建空的配置文件和python运行脚本 +echo.> config.toml +echo.> __init__.py ``` 在 `__init__.py` 创建一个 `rule` 实例并继承 `Rule` 基类, 通过编写合适的相关方法与类注册规则包实现规则的自定义。 ``` python -from HydroRollCore import Rules +from HydroRollCore import Rule -class Myrule(Rules): +class Myrule(Rule): """自设规则包,继承 Rules 基类""" ``` |
