From f80083655ae2b540018d8e21195970295e35d4ce Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 7 Oct 2023 00:53:48 +0000 Subject: Deployed 40a4918 to dev with MkDocs 1.5.3 and mike 1.1.2 --- dev/404.html | 2 +- dev/API/index.html | 2 +- dev/CLI/index.html | 4 ++-- dev/Core/index.html | 4 ++-- dev/RulePackage/Write/prepare/index.html | 2 +- dev/RulePackage/Write/python/index.html | 2 +- dev/RulePackage/Write/write/index.html | 2 +- dev/RulePackage/getStart/attribute/index.html | 2 +- dev/RulePackage/getStart/class/index.html | 2 +- dev/RulePackage/getStart/getDeeper/Module/index.html | 2 +- dev/RulePackage/getStart/getDeeper/Package/index.html | 2 +- dev/RulePackage/getStart/getDeeper/object/index.html | 2 +- dev/RulePackage/getStart/method/index.html | 2 +- dev/RulePackage/intro/index.html | 2 +- dev/RulePackage/skill/index.html | 1 + dev/Standard/Term/DefaultDice/_counts/index.html | 2 +- dev/Standard/Term/DefaultDice/_sides/index.html | 2 +- dev/Standard/Term/DefaultDice/index.html | 2 +- dev/Standard/Term/PlayerCard/index.html | 2 +- dev/Standard/Term/check/ability/index.html | 2 +- dev/Standard/Term/check/index.html | 2 +- dev/Standard/Term/duration/campaign/index.html | 2 +- dev/Standard/Term/duration/index.html | 2 +- dev/Standard/Term/duration/module/index.html | 2 +- dev/Standard/Term/duration/sene/index.html | 2 +- dev/Standard/Term/scenario/index.html | 2 +- dev/Standard/Term/setting/index.html | 2 +- dev/Standard/what-is-rule-package/index.html | 4 ++-- dev/Standard/what-is-standard/index.html | 2 +- dev/Standard/why-rule-package/index.html | 2 +- dev/blog/2023/10/07/rule/index.html | 4 ++-- dev/blog/archive/2023/index.html | 2 +- dev/blog/category/rules/index.html | 2 +- dev/blog/index.html | 2 +- dev/changelog/index.html | 2 +- dev/index.html | 2 +- dev/sitemap.xml.gz | Bin 127 -> 127 bytes 37 files changed, 40 insertions(+), 39 deletions(-) create mode 100644 dev/RulePackage/skill/index.html diff --git a/dev/404.html b/dev/404.html index 45ce827c..81a5fd6d 100644 --- a/dev/404.html +++ b/dev/404.html @@ -1 +1 @@ - HydroRollCore 核心文档 (草案)

404 - Not found

\ No newline at end of file + HydroRollCore 核心文档 (草案)

404 - Not found

\ No newline at end of file diff --git a/dev/API/index.html b/dev/API/index.html index da6d1ed5..6486fb28 100644 --- a/dev/API/index.html +++ b/dev/API/index.html @@ -1 +1 @@ - API Reference - HydroRollCore 核心文档 (草案)

API Reference


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + API Reference - HydroRollCore 核心文档 (草案)

API Reference


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/CLI/index.html b/dev/CLI/index.html index 616d8110..10579045 100644 --- a/dev/CLI/index.html +++ b/dev/CLI/index.html @@ -1,4 +1,4 @@ - CLI Reference - HydroRollCore 核心文档 (草案)
跳转至

CLI Reference⚓︎

```python exec="1" idprefix="" import argparse import re from HydroRollCore import Cli

parser = Cli().parser

MONOSPACED = ("pyproject.toml", "pdm.lock", ".pdm-python", ":pre", ":post", ":all")

def clean_help(help: str) -> str: # Make dunders monospaced avoiding italic markdown rendering help = re.sub(r"([\w\d_]+)", r"__\1__", help) # Make env vars monospaced help = re.sub(r"env var: ([A-Z_]+)", r"env var: \1", help) for monospaced in MONOSPACED: help = re.sub(rf"\s(['\"]?{monospaced}['\"]?)", f"{monospaced}", help) return help

def render_parser( parser: argparse.ArgumentParser, title: str, heading_level: int = 2 ) -> str: """Render the parser help documents as a string.""" result = [f"{'#' * heading_level} {title}\n"] if parser.description and title != "HydroRollCore": result.append("> " + parser.description + "\n")

 1
+ CLI Reference - HydroRollCore 核心文档 (草案)       

CLI Reference⚓︎

```python exec="1" idprefix="" import argparse import re from HydroRollCore import Cli

parser = Cli().parser

MONOSPACED = ("pyproject.toml", "pdm.lock", ".pdm-python", ":pre", ":post", ":all")

def clean_help(help: str) -> str: # Make dunders monospaced avoiding italic markdown rendering help = re.sub(r"([\w\d_]+)", r"__\1__", help) # Make env vars monospaced help = re.sub(r"env var: ([A-Z_]+)", r"env var: \1", help) for monospaced in MONOSPACED: help = re.sub(rf"\s(['\"]?{monospaced}['\"]?)", f"{monospaced}", help) return help

def render_parser( parser: argparse.ArgumentParser, title: str, heading_level: int = 2 ) -> str: """Render the parser help documents as a string.""" result = [f"{'#' * heading_level} {title}\n"] if parser.description and title != "HydroRollCore": result.append("> " + parser.description + "\n")

 1
  2
  3
  4
@@ -59,4 +59,4 @@
     result.append("")
 
 return "\n".join(result)
-

print(render_parser(parser, "HydroRollCore")) ```


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +

print(render_parser(parser, "HydroRollCore")) ```


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Core/index.html b/dev/Core/index.html index c1495a46..f0e5feba 100644 --- a/dev/Core/index.html +++ b/dev/Core/index.html @@ -1,4 +1,4 @@ - 核心概览 - HydroRollCore 核心文档 (草案)
跳转至

HydroRollCore'水系核心

🎁 Getting⚓︎

  1. 安装库

在命令行输入。

1
+ 核心概览 - HydroRollCore 核心文档 (草案)       

HydroRollCore'水系核心

🎁 Getting⚓︎

  1. 安装库

在命令行输入。

1
 2
 3
 4
@@ -19,4 +19,4 @@
 
 class Myrule(Rule):
   """自设规则包,继承 Rule 基类"""
-
  1. 合理修改你的 config.toml 配置文件,完成注册!

📄 License⚓︎

MIT © 2023-PRESENT 简律纯


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +
  1. 合理修改你的 config.toml 配置文件,完成注册!

📄 License⚓︎

MIT © 2023-PRESENT 简律纯


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/Write/prepare/index.html b/dev/RulePackage/Write/prepare/index.html index f4f6f06c..0c250463 100644 --- a/dev/RulePackage/Write/prepare/index.html +++ b/dev/RulePackage/Write/prepare/index.html @@ -1 +1 @@ - 准备规则书 - HydroRollCore 核心文档 (草案)

准备规则书


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 准备规则书 - HydroRollCore 核心文档 (草案)

准备规则书


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/Write/python/index.html b/dev/RulePackage/Write/python/index.html index e5fbc418..8cd6288c 100644 --- a/dev/RulePackage/Write/python/index.html +++ b/dev/RulePackage/Write/python/index.html @@ -1 +1 @@ - 了解Python - HydroRollCore 核心文档 (草案)

了解Python


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 了解Python - HydroRollCore 核心文档 (草案)

了解Python


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/Write/write/index.html b/dev/RulePackage/Write/write/index.html index d7f1a668..d6323fe3 100644 --- a/dev/RulePackage/Write/write/index.html +++ b/dev/RulePackage/Write/write/index.html @@ -1 +1 @@ - 编写规则包 - HydroRollCore 核心文档 (草案)

编写规则包


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 编写规则包 - HydroRollCore 核心文档 (草案)

编写规则包


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/attribute/index.html b/dev/RulePackage/getStart/attribute/index.html index 7f8bfacb..d4e7a0e0 100644 --- a/dev/RulePackage/getStart/attribute/index.html +++ b/dev/RulePackage/getStart/attribute/index.html @@ -1 +1 @@ - attribute 属性 - HydroRollCore 核心文档 (草案)

属性

Info

关联到一个对象的值,通常使用点号表达式按名称来引用。 举例来说,如果对象 o 具有属性 a 则可以用 o.a 来引用它。

如果对象允许,将未被定义为 标识符和关键字 的非标识名称用作一个对象的属性也是可以的,例如使用 setattr()。 这样的属性将无法使用点号表达式来访问,而是必须通过 getattr() 来获取。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + attribute 属性 - HydroRollCore 核心文档 (草案)

属性

Info

关联到一个对象的值,通常使用点号表达式按名称来引用。 举例来说,如果对象 o 具有属性 a 则可以用 o.a 来引用它。

如果对象允许,将未被定义为 标识符和关键字 的非标识名称用作一个对象的属性也是可以的,例如使用 setattr()。 这样的属性将无法使用点号表达式来访问,而是必须通过 getattr() 来获取。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/class/index.html b/dev/RulePackage/getStart/class/index.html index e751cd94..2c6f0530 100644 --- a/dev/RulePackage/getStart/class/index.html +++ b/dev/RulePackage/getStart/class/index.html @@ -1 +1 @@ - class 类 - HydroRollCore 核心文档 (草案)

Info

用来创建用户定义对象的模板。类定义通常包含对该类的实例进行操作的方法定义。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + class 类 - HydroRollCore 核心文档 (草案)

Info

用来创建用户定义对象的模板。类定义通常包含对该类的实例进行操作的方法定义。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/getDeeper/Module/index.html b/dev/RulePackage/getStart/getDeeper/Module/index.html index a488eb77..f4d411ce 100644 --- a/dev/RulePackage/getStart/getDeeper/Module/index.html +++ b/dev/RulePackage/getStart/getDeeper/Module/index.html @@ -1 +1 @@ - Module 模块 - HydroRollCore 核心文档 (草案)

模块

Info

此对象是 Python 代码的一种组织单位。各模块具有独立的命名空间,可包含任意 Python 对象。模块可通过 importing 操作被加载到 Python 中。

另见 package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + Module 模块 - HydroRollCore 核心文档 (草案)

模块

Info

此对象是 Python 代码的一种组织单位。各模块具有独立的命名空间,可包含任意 Python 对象。模块可通过 importing 操作被加载到 Python 中。

另见 package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/getDeeper/Package/index.html b/dev/RulePackage/getStart/getDeeper/Package/index.html index d13c87ed..0321c494 100644 --- a/dev/RulePackage/getStart/getDeeper/Package/index.html +++ b/dev/RulePackage/getStart/getDeeper/Package/index.html @@ -1 +1 @@ - Package 包 - HydroRollCore 核心文档 (草案)

Info

一种可包含子模块或递归地包含子包的 Python module。 从技术上说,包是具有 path 属性的 Python 模块。

另参见 regular packagenamespace package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + Package 包 - HydroRollCore 核心文档 (草案)

Info

一种可包含子模块或递归地包含子包的 Python module。 从技术上说,包是具有 path 属性的 Python 模块。

另参见 regular packagenamespace package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/getDeeper/object/index.html b/dev/RulePackage/getStart/getDeeper/object/index.html index 8bc70097..2d74789d 100644 --- a/dev/RulePackage/getStart/getDeeper/object/index.html +++ b/dev/RulePackage/getStart/getDeeper/object/index.html @@ -1 +1 @@ - object 对象 - HydroRollCore 核心文档 (草案)

对象

Info

任何具有状态(属性或值)以及预定义行为(方法)的数据。object 也是任何 new-style class 的最顶层基类名。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + object 对象 - HydroRollCore 核心文档 (草案)

对象

Info

任何具有状态(属性或值)以及预定义行为(方法)的数据。object 也是任何 new-style class 的最顶层基类名。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/method/index.html b/dev/RulePackage/getStart/method/index.html index b758f5d3..07ee0865 100644 --- a/dev/RulePackage/getStart/method/index.html +++ b/dev/RulePackage/getStart/method/index.html @@ -1 +1 @@ - method 方法 - HydroRollCore 核心文档 (草案)

方法

Info

在类内部定义的函数。如果作为该类的实例的一个属性来调用,方法将会获取实例对象作为其第一个 argument (通常命名为 self)。参见 functionnested scope


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + method 方法 - HydroRollCore 核心文档 (草案)

方法

Info

在类内部定义的函数。如果作为该类的实例的一个属性来调用,方法将会获取实例对象作为其第一个 argument (通常命名为 self)。参见 functionnested scope


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/intro/index.html b/dev/RulePackage/intro/index.html index f3f9f93d..8fc9609b 100644 --- a/dev/RulePackage/intro/index.html +++ b/dev/RulePackage/intro/index.html @@ -1 +1 @@ - 规则包简介 - HydroRollCore 核心文档 (草案)

简介

Warning

此章节涉及到真正的 Python 规范问题,因此请认真阅读并多加练习,方能写出漂亮的代码。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 规则包简介 - HydroRollCore 核心文档 (草案)

简介

Warning

此章节涉及到真正的 Python 规范问题,因此请认真阅读并多加练习,方能写出漂亮的代码。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/skill/index.html b/dev/RulePackage/skill/index.html new file mode 100644 index 00000000..97d66020 --- /dev/null +++ b/dev/RulePackage/skill/index.html @@ -0,0 +1 @@ + Index - HydroRollCore 核心文档 (草案)

Index


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/DefaultDice/_counts/index.html b/dev/Standard/Term/DefaultDice/_counts/index.html index 4fd4b39e..2efd6fde 100644 --- a/dev/Standard/Term/DefaultDice/_counts/index.html +++ b/dev/Standard/Term/DefaultDice/_counts/index.html @@ -1 +1 @@ - _counts 骰子个数 - HydroRollCore 核心文档 (草案)
跳转至

_counts 骰子个数

Tip

这是一个必须的值,根据不同规则书的要求设置相对应的值

属性说明⚓︎

用于规定默认投掷时骰子的个数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + _counts 骰子个数 - HydroRollCore 核心文档 (草案)
跳转至

_counts 骰子个数

Tip

这是一个必须的值,根据不同规则书的要求设置相对应的值

属性说明⚓︎

用于规定默认投掷时骰子的个数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/DefaultDice/_sides/index.html b/dev/Standard/Term/DefaultDice/_sides/index.html index f08a96f8..35f2d00a 100644 --- a/dev/Standard/Term/DefaultDice/_sides/index.html +++ b/dev/Standard/Term/DefaultDice/_sides/index.html @@ -1 +1 @@ - _sides 骰子面数 - HydroRollCore 核心文档 (草案)
跳转至

_sides 骰子面数

属性说明⚓︎

用于规定默认投掷时骰子的面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + _sides 骰子面数 - HydroRollCore 核心文档 (草案)
跳转至

_sides 骰子面数

属性说明⚓︎

用于规定默认投掷时骰子的面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/DefaultDice/index.html b/dev/Standard/Term/DefaultDice/index.html index 8725e12b..015c39f2 100644 --- a/dev/Standard/Term/DefaultDice/index.html +++ b/dev/Standard/Term/DefaultDice/index.html @@ -1 +1 @@ - DefaultDice 默认骰子 - HydroRollCore 核心文档 (草案)
跳转至

DefaultDice 默认骰子

Tip

这是一个必须的类,根据不同规则书的要求设置相对应的值

类说明⚓︎

用于规定默认投掷时骰子的各种属性,例如默认骰子数量,面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + DefaultDice 默认骰子 - HydroRollCore 核心文档 (草案)
跳转至

DefaultDice 默认骰子

Tip

这是一个必须的类,根据不同规则书的要求设置相对应的值

类说明⚓︎

用于规定默认投掷时骰子的各种属性,例如默认骰子数量,面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/PlayerCard/index.html b/dev/Standard/Term/PlayerCard/index.html index 5d3c08c4..fb66cbe0 100644 --- a/dev/Standard/Term/PlayerCard/index.html +++ b/dev/Standard/Term/PlayerCard/index.html @@ -1 +1 @@ - PlayerCard 人物卡 - HydroRollCore 核心文档 (草案)
跳转至

PlayerCard 人物卡

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

类说明⚓︎

用于规定人物卡的格式,包括人物属性,属性之间的计算关系等


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + PlayerCard 人物卡 - HydroRollCore 核心文档 (草案)
跳转至

PlayerCard 人物卡

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

类说明⚓︎

用于规定人物卡的格式,包括人物属性,属性之间的计算关系等


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/check/ability/index.html b/dev/Standard/Term/check/ability/index.html index 15537b46..cb894419 100644 --- a/dev/Standard/Term/check/ability/index.html +++ b/dev/Standard/Term/check/ability/index.html @@ -1 +1 @@ - ability 检定 - HydroRollCore 核心文档 (草案)
\ No newline at end of file + ability 检定 - HydroRollCore 核心文档 (草案)
\ No newline at end of file diff --git a/dev/Standard/Term/check/index.html b/dev/Standard/Term/check/index.html index 9ef7be47..9256a1a2 100644 --- a/dev/Standard/Term/check/index.html +++ b/dev/Standard/Term/check/index.html @@ -1 +1 @@ - check 检定 - HydroRollCore 核心文档 (草案)
跳转至

check 检定

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

方法说明⚓︎

使用check或者ability方法, 必须对检定结果设定一个完整的输出判定范围。

检定结果表⚓︎

方法所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限,保证所有情况都在允许范围内有一个类似”成功””失败”的输出。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + check 检定 - HydroRollCore 核心文档 (草案)
跳转至

check 检定

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

方法说明⚓︎

使用check或者ability方法, 必须对检定结果设定一个完整的输出判定范围。

检定结果表⚓︎

方法所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限,保证所有情况都在允许范围内有一个类似”成功””失败”的输出。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/campaign/index.html b/dev/Standard/Term/duration/campaign/index.html index f01c1a9b..3842f5a6 100644 --- a/dev/Standard/Term/duration/campaign/index.html +++ b/dev/Standard/Term/duration/campaign/index.html @@ -1 +1 @@ - campaign 战役 - HydroRollCore 核心文档 (草案)

campaign 战役


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + campaign 战役 - HydroRollCore 核心文档 (草案)

campaign 战役


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/index.html b/dev/Standard/Term/duration/index.html index 36b6ba46..218e492a 100644 --- a/dev/Standard/Term/duration/index.html +++ b/dev/Standard/Term/duration/index.html @@ -1 +1 @@ - duration (时长) - HydroRollCore 核心文档 (草案)
跳转至

duration (时长)⚓︎


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + duration (时长) - HydroRollCore 核心文档 (草案)
跳转至

duration (时长)⚓︎


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/module/index.html b/dev/Standard/Term/duration/module/index.html index 421bac0a..96e02b5b 100644 --- a/dev/Standard/Term/duration/module/index.html +++ b/dev/Standard/Term/duration/module/index.html @@ -1 +1 @@ - module 模组 - HydroRollCore 核心文档 (草案)

module 模组


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + module 模组 - HydroRollCore 核心文档 (草案)

module 模组


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/sene/index.html b/dev/Standard/Term/duration/sene/index.html index dc191b27..5c24afbf 100644 --- a/dev/Standard/Term/duration/sene/index.html +++ b/dev/Standard/Term/duration/sene/index.html @@ -1 +1 @@ - sene 场 - HydroRollCore 核心文档 (草案)

sene 场


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + sene 场 - HydroRollCore 核心文档 (草案)

sene 场


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/scenario/index.html b/dev/Standard/Term/scenario/index.html index e73e1277..37b15784 100644 --- a/dev/Standard/Term/scenario/index.html +++ b/dev/Standard/Term/scenario/index.html @@ -1 +1 @@ - scenario 剧本 - HydroRollCore 核心文档 (草案)

scenario 剧本


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + scenario 剧本 - HydroRollCore 核心文档 (草案)

scenario 剧本


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/setting/index.html b/dev/Standard/Term/setting/index.html index 1ca8aae9..a7527c40 100644 --- a/dev/Standard/Term/setting/index.html +++ b/dev/Standard/Term/setting/index.html @@ -1 +1 @@ - setting 背景 - HydroRollCore 核心文档 (草案)

setting 背景


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + setting 背景 - HydroRollCore 核心文档 (草案)

setting 背景


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/what-is-rule-package/index.html b/dev/Standard/what-is-rule-package/index.html index 8ee18d5b..369a8dc6 100644 --- a/dev/Standard/what-is-rule-package/index.html +++ b/dev/Standard/what-is-rule-package/index.html @@ -1,4 +1,4 @@ - 什么是规则包? - HydroRollCore 核心文档 (草案)

什么是规则包?

规则包是水系核心用来加载的对象,可以理解为水系核心加载的一个一个规则实例。

规则包更类似于插件的设计,所以规则包也可以是一个Python文件或者一个Python包,但它必须像插件那样继承一个像Plugin这样的类(不然无法读取,我们姑且叫这个类为Rule),以及在Rule的子类里实现一些像handle()或者rule()这样必须实现的方法(也叫函数),而这些必须实现的方法,就是我们要讨论的,一个通用规则包标准就是明确了一个继承自Rule类的子类它本身应该实现什么方法。

举个例子(随便写的,其中一些必须实现的属性或者类名都是不确定的,以后或许会改):

 1
+ 什么是规则包? - HydroRollCore 核心文档 (草案)      

什么是规则包?

规则包是水系核心用来加载的对象,可以理解为水系核心加载的一个一个规则实例。

规则包更类似于插件的设计,所以规则包也可以是一个Python文件或者一个Python包,但它必须像插件那样继承一个像Plugin这样的类(不然无法读取,我们姑且叫这个类为Rule),以及在Rule的子类里实现一些像handle()或者rule()这样必须实现的方法(也叫函数),而这些必须实现的方法,就是我们要讨论的,一个通用规则包标准就是明确了一个继承自Rule类的子类它本身应该实现什么方法。

举个例子(随便写的,其中一些必须实现的属性或者类名都是不确定的,以后或许会改):

 1
  2
  3
  4
@@ -45,4 +45,4 @@
             return self.rule.ability.success # 返回大成功时骰主自定义的大成功文本
         else:
             ... # 其他的检定情况
-

这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用check()方法,如果检定结果数值小于5且大于0那么返回大成功。

我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +

这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用check()方法,如果检定结果数值小于5且大于0那么返回大成功。

我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/what-is-standard/index.html b/dev/Standard/what-is-standard/index.html index 24df71e8..e9be25c2 100644 --- a/dev/Standard/what-is-standard/index.html +++ b/dev/Standard/what-is-standard/index.html @@ -1 +1 @@ - 什么是通用规则包标准? - HydroRollCore 核心文档 (草案)

什么是通用规则包标准?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 什么是通用规则包标准? - HydroRollCore 核心文档 (草案)

什么是通用规则包标准?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/why-rule-package/index.html b/dev/Standard/why-rule-package/index.html index e07888f8..8ee26e72 100644 --- a/dev/Standard/why-rule-package/index.html +++ b/dev/Standard/why-rule-package/index.html @@ -1 +1 @@ - 为什么要做规则包? - HydroRollCore 核心文档 (草案)

为什么要做规则包?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 为什么要做规则包? - HydroRollCore 核心文档 (草案)

为什么要做规则包?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/blog/2023/10/07/rule/index.html b/dev/blog/2023/10/07/rule/index.html index a8f89838..8ccc9faa 100644 --- a/dev/blog/2023/10/07/rule/index.html +++ b/dev/blog/2023/10/07/rule/index.html @@ -1,5 +1,5 @@ Rule 基类已经支持泛型了 - HydroRollCore 核心文档 (草案)
跳转至

Rule 基类已经支持泛型了⚓︎

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

This article explains how to build a standalone blog with Material for MkDocs. If you want to build a blog alongside your documentation, please refer to the plugin's documentation.

Quick start⚓︎

Creating a standalone blog⚓︎

You can bootstrap a new project using the mkdocs executable:

mkdocs new .
+">Rule 基类已经支持泛型了 - HydroRollCore 核心文档 (草案)       

Rule 基类已经支持泛型了⚓︎

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

This article explains how to build a standalone blog with Material for MkDocs. If you want to build a blog alongside your documentation, please refer to the plugin's documentation.

Quick start⚓︎

Creating a standalone blog⚓︎

You can bootstrap a new project using the mkdocs executable:

mkdocs new .
 

This will create the following structure:

1
 2
 3
@@ -103,4 +103,4 @@
 arcu tincidunt pulvinar. Vestibulum laoreet risus scelerisque porta congue.
 In velit purus, dictum quis neque nec, molestie viverra risus. Nam pellentesque
 tellus id elit ultricies, vel finibus erat cursus.
-
  1. If you mark a post as a draft, a red marker appears next to the post date on index pages. When the site is built, drafts are not included in the output. This behavior can be changed, e.g. for rendering drafts when building deploy previews.

When you spin up the live preview server, you should be greeted by your first post! You'll also realize, that archive and category indexes have been automatically generated for you:

Blog

However, this is just the start. The built-in blog plugin packs a lot of functionality needed in day-to-day blogging. Visit the documentation of the plugin to learn about the following topics:

Additionally, the built-in blog plugin has dozens of configuration options which allow for fine-tuning the output. You can configure post slugs, general behavior and much more.

What's next?⚓︎

Getting basic blogging support out the door was quite a challenge – the built-in blog plugin is probably the biggest release this year and already packs a lot of functionality. However, Material for MkDocs is used in many different contexts, which is why we'd expect to iterate, as always.

Some ideas already proposed by users:

  • Blog series: Authors should be able to create so called blog series and assign posts to a blog series using simple identifiers. For each post that is part of a series, a list with links to all other posts should be included in the post's content.

  • Author indexes: Besides archive and category indexes, authors should be able to create per-author indexes, which list all posts linked to an author. Additionally, a profile should be created for each author and linked from posts.

  • Social share buttons: It should be easy to share blog posts via social media or other ways. For this reason, it should be possible to automatically include social sharing buttons with each post.

What's still missing from the brand new built-in blog plugin? Feel free to share your ideas in the comments. Together, we can build one of the best modern engines for technical blogging!


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +
  1. If you mark a post as a draft, a red marker appears next to the post date on index pages. When the site is built, drafts are not included in the output. This behavior can be changed, e.g. for rendering drafts when building deploy previews.

When you spin up the live preview server, you should be greeted by your first post! You'll also realize, that archive and category indexes have been automatically generated for you:

Blog

However, this is just the start. The built-in blog plugin packs a lot of functionality needed in day-to-day blogging. Visit the documentation of the plugin to learn about the following topics:

Additionally, the built-in blog plugin has dozens of configuration options which allow for fine-tuning the output. You can configure post slugs, general behavior and much more.

What's next?⚓︎

Getting basic blogging support out the door was quite a challenge – the built-in blog plugin is probably the biggest release this year and already packs a lot of functionality. However, Material for MkDocs is used in many different contexts, which is why we'd expect to iterate, as always.

Some ideas already proposed by users:

  • Blog series: Authors should be able to create so called blog series and assign posts to a blog series using simple identifiers. For each post that is part of a series, a list with links to all other posts should be included in the post's content.

  • Author indexes: Besides archive and category indexes, authors should be able to create per-author indexes, which list all posts linked to an author. Additionally, a profile should be created for each author and linked from posts.

  • Social share buttons: It should be easy to share blog posts via social media or other ways. For this reason, it should be possible to automatically include social sharing buttons with each post.

What's still missing from the brand new built-in blog plugin? Feel free to share your ideas in the comments. Together, we can build one of the best modern engines for technical blogging!


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/blog/archive/2023/index.html b/dev/blog/archive/2023/index.html index ee20eeb1..91c2a103 100644 --- a/dev/blog/archive/2023/index.html +++ b/dev/blog/archive/2023/index.html @@ -1 +1 @@ - 2023 - HydroRollCore 核心文档 (草案)
跳转至

2023⚓︎

Rule 基类已经支持泛型了

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file + 2023 - HydroRollCore 核心文档 (草案)
跳转至

2023⚓︎

Rule 基类已经支持泛型了

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file diff --git a/dev/blog/category/rules/index.html b/dev/blog/category/rules/index.html index 3281819b..759200a0 100644 --- a/dev/blog/category/rules/index.html +++ b/dev/blog/category/rules/index.html @@ -1 +1 @@ - Rules - HydroRollCore 核心文档 (草案)
跳转至

Rules⚓︎

Rule 基类已经支持泛型了

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file + Rules - HydroRollCore 核心文档 (草案)
跳转至

Rules⚓︎

Rule 基类已经支持泛型了

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file diff --git a/dev/blog/index.html b/dev/blog/index.html index 00883884..02601a56 100644 --- a/dev/blog/index.html +++ b/dev/blog/index.html @@ -1 +1 @@ - Blog - HydroRollCore 核心文档 (草案)
跳转至

Blog⚓︎

Rule 基类已经支持泛型了

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file + Blog - HydroRollCore 核心文档 (草案)
跳转至

Blog⚓︎

Rule 基类已经支持泛型了

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file diff --git a/dev/changelog/index.html b/dev/changelog/index.html index 4806e34a..b9199063 100644 --- a/dev/changelog/index.html +++ b/dev/changelog/index.html @@ -1 +1 @@ - Changelog - HydroRollCore 核心文档 (草案)
跳转至

Changelog

1.0.1 (2023-10-07)⚓︎

BUG FIX⚓︎

  • Docs: 修复 Devlatest 分支的错别字。

0.1.2 (2023-10-07)⚓︎

同步版本所做的测试。

0.1.1 (2023-10-07)⚓︎

BUG FIX⚓︎

  • CLI: 添加命令行参数解析。

0.1.0-rc1 (2023-10-07)⚓︎

CHORE⚓︎

  • README: 更新主页介绍的安装指南。

0.1.0 (2023-10-07)⚓︎

Features⚓︎

  • CLI 添加两个命令行名称 HydroRollCoreHRC

0.0.1 (2023-07-04)⚓︎

Features⚓︎

  • init: 添加命令行参数解析。
  • Rule: 添加 Rule 基类,实现读取指定文件夹下的 python 脚本或 python 包

BREAKING CHANGE⚓︎

  • HydroRollCore: 添加命令行Path。

最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + Changelog - HydroRollCore 核心文档 (草案)
跳转至

Changelog

1.0.1 (2023-10-07)⚓︎

BUG FIX⚓︎

  • Docs: 修复 Devlatest 分支的错别字。

0.1.2 (2023-10-07)⚓︎

同步版本所做的测试。

0.1.1 (2023-10-07)⚓︎

BUG FIX⚓︎

  • CLI: 添加命令行参数解析。

0.1.0-rc1 (2023-10-07)⚓︎

CHORE⚓︎

  • README: 更新主页介绍的安装指南。

0.1.0 (2023-10-07)⚓︎

Features⚓︎

  • CLI 添加两个命令行名称 HydroRollCoreHRC

0.0.1 (2023-07-04)⚓︎

Features⚓︎

  • init: 添加命令行参数解析。
  • Rule: 添加 Rule 基类,实现读取指定文件夹下的 python 脚本或 python 包

BREAKING CHANGE⚓︎

  • HydroRollCore: 添加命令行Path。

最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/index.html b/dev/index.html index fa723028..d7b4706f 100644 --- a/dev/index.html +++ b/dev/index.html @@ -1 +1 @@ - 水系核心 - HydroRollCore 核心文档 (草案)

水系核心

一个基于通用规则包标准的规则包加载器。.

快速开始 查看标准
\ No newline at end of file + 水系核心 - HydroRollCore 核心文档 (草案)

水系核心

一个基于通用规则包标准的规则包加载器.

快速开始 查看标准
\ No newline at end of file diff --git a/dev/sitemap.xml.gz b/dev/sitemap.xml.gz index c7ed6da3..a92551a9 100644 Binary files a/dev/sitemap.xml.gz and b/dev/sitemap.xml.gz differ -- cgit v1.2.3-70-g09d2