diff options
| author | 2024-06-21 04:47:16 +0800 | |
|---|---|---|
| committer | 2024-06-21 04:47:16 +0800 | |
| commit | a2477b28057251c4685dbf0b56359dee7b595bfa (patch) | |
| tree | b1dcd4df60dfcfcc1113d9ee4cd3926a25ca158e /tests | |
| parent | 2e5b7e8ab75e0d80066d1ef5619d10fe827fd5a8 (diff) | |
| download | HydroRollCore-a2477b28057251c4685dbf0b56359dee7b595bfa.tar.gz HydroRollCore-a2477b28057251c4685dbf0b56359dee7b595bfa.zip | |
refactor(filetree): rename package's namespace as `hrc`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_BaseRule.py | 69 | ||||
| -rw-r--r-- | tests/test_corelib.py | 7 |
2 files changed, 71 insertions, 5 deletions
diff --git a/tests/test_BaseRule.py b/tests/test_BaseRule.py new file mode 100644 index 0000000..f450c28 --- /dev/null +++ b/tests/test_BaseRule.py @@ -0,0 +1,69 @@ +__rule_book__ = "BASIC ROLEPLAYING" + +# General Rule Pack Standard(GRPSv1) + +# 规则书剖析 + +# 共有的大类 +# ============================ +# judge role - 判定规则 +# - 事件判定规则 +# character card - 人物卡(属性) +# playing time* - * + + +# 可选的大类 +# ---------------------------- +# settings - 背景设定 +# custom rule - 自定义规则 +# - 特殊胜利手段(意外死亡、看月亮看死的等) +# expansion rule - 拓展规则 +# - coc 中的伤害价值、调整 +# - 装备中的盾牌 +# - 药水、符文等各种各样时尚小垃圾 + +# 不同的大类(举例) +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +# + + +# 规则包剖析 + +# 根据细类区分 + +# 词条 - Wiki +# 查询条目 - Query +# 规定算法 - Algorithm + +# 游戏时长 - Duration +# 战斗轮、追逐轮、行动轮 +# 回合 +# 幕间 +# 战役 +# 模组 + +# 判定规则 +# - 属性|判定 规则 +# - 技能判定规则 +# - 自定义类判定规则 + +# 人物卡 +# - 属性列表* +# - 技能列表* +# - 人物塑造 +# - 姓名、年龄、种族、阵营 + + +# ============================================== + +# MyRule +from hrc.rules.BaseRule import JudgeRule + +class JudgeAttr(JudgeRule.Attribute): + """来自判定规则 - 属性判定 + + 属性判定规则(模式)""" + + +class JudgeCustom(JudgeRule.Custom): + ... diff --git a/tests/test_corelib.py b/tests/test_corelib.py index 38c2ef9..64b11ce 100644 --- a/tests/test_corelib.py +++ b/tests/test_corelib.py @@ -1,15 +1,12 @@ -from hydro_roll_core import libcore +from hrc import LibCore -cb = libcore +cb = LibCore def main(): rule_pack = "example_rule_pack" result = cb.process_rule_pack(rule_pack) print(result) - print(cb.name) - cb.name = "a" - print(cb.name) if __name__ == "__main__": |
