aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/hydro_roll_core
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-06-21 04:47:16 +0800
committer简律纯 <i@jyunko.cn>2024-06-21 04:47:16 +0800
commita2477b28057251c4685dbf0b56359dee7b595bfa (patch)
treeb1dcd4df60dfcfcc1113d9ee4cd3926a25ca158e /hydro_roll_core
parent2e5b7e8ab75e0d80066d1ef5619d10fe827fd5a8 (diff)
downloadHydroRollCore-a2477b28057251c4685dbf0b56359dee7b595bfa.tar.gz
HydroRollCore-a2477b28057251c4685dbf0b56359dee7b595bfa.zip
refactor(filetree): rename package's namespace as `hrc`
Diffstat (limited to 'hydro_roll_core')
-rw-r--r--hydro_roll_core/__init__.py1
-rw-r--r--hydro_roll_core/cli.py46
-rw-r--r--hydro_roll_core/config.py0
-rw-r--r--hydro_roll_core/const.py0
-rw-r--r--hydro_roll_core/core.py1
-rw-r--r--hydro_roll_core/dependencies.py0
-rw-r--r--hydro_roll_core/development/__init__.py3
-rw-r--r--hydro_roll_core/development/character.py2
-rw-r--r--hydro_roll_core/document/__init__.py0
-rw-r--r--hydro_roll_core/exceptions.py0
-rw-r--r--hydro_roll_core/feature/__init__.py0
-rw-r--r--hydro_roll_core/libcore.pyi5
-rw-r--r--hydro_roll_core/log.py0
-rw-r--r--hydro_roll_core/performance/__init__.py0
-rw-r--r--hydro_roll_core/py.typed0
-rw-r--r--hydro_roll_core/rule_package.py0
-rw-r--r--hydro_roll_core/rules/BaseRule/JudgeRule.py18
-rw-r--r--hydro_roll_core/rules/BaseRule/__init__.py46
-rw-r--r--hydro_roll_core/rules/__init__.py0
-rw-r--r--hydro_roll_core/typing.py0
-rw-r--r--hydro_roll_core/utils.py0
21 files changed, 0 insertions, 122 deletions
diff --git a/hydro_roll_core/__init__.py b/hydro_roll_core/__init__.py
deleted file mode 100644
index 1bd4ab1..0000000
--- a/hydro_roll_core/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-from .libcore import *
diff --git a/hydro_roll_core/cli.py b/hydro_roll_core/cli.py
deleted file mode 100644
index 55758bc..0000000
--- a/hydro_roll_core/cli.py
+++ /dev/null
@@ -1,46 +0,0 @@
-import argparse
-
-
-class Cli(object):
- parser = argparse.ArgumentParser(description="水系核心终端")
-
- def __init__(self):
- self.parser.add_argument(
- "-i",
- "--install",
- dest="command",
- help="安装规则包",
- action="store_const",
- const="install_package",
- )
- self.parser.add_argument(
- "-T",
- "--template",
- dest="command",
- help="选择模板快速创建规则包实例",
- action="store_const",
- const="build_template",
- )
- self.parser.add_argument(
- "-S",
- "--search",
- dest="command",
- help="在指定镜像源查找规则包",
- action="store_const",
- const="search_package",
- )
- self.parser.add_argument(
- "-c",
- "--config",
- dest="command",
- help="配置管理",
- action="store_const",
- const="config",
- )
- self.args = self.parser.parse_args()
-
- def get_args(self):
- return self.args
-
- def get_help(self):
- return self.parser.format_help()
diff --git a/hydro_roll_core/config.py b/hydro_roll_core/config.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/config.py
+++ /dev/null
diff --git a/hydro_roll_core/const.py b/hydro_roll_core/const.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/const.py
+++ /dev/null
diff --git a/hydro_roll_core/core.py b/hydro_roll_core/core.py
deleted file mode 100644
index 020ccb9..0000000
--- a/hydro_roll_core/core.py
+++ /dev/null
@@ -1 +0,0 @@
-class Core: ...
diff --git a/hydro_roll_core/dependencies.py b/hydro_roll_core/dependencies.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/dependencies.py
+++ /dev/null
diff --git a/hydro_roll_core/development/__init__.py b/hydro_roll_core/development/__init__.py
deleted file mode 100644
index b3e76b3..0000000
--- a/hydro_roll_core/development/__init__.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from .character import Character
-
-__all__ = ["Character"]
diff --git a/hydro_roll_core/development/character.py b/hydro_roll_core/development/character.py
deleted file mode 100644
index c883e45..0000000
--- a/hydro_roll_core/development/character.py
+++ /dev/null
@@ -1,2 +0,0 @@
-class Character:
- class Attribute: ...
diff --git a/hydro_roll_core/document/__init__.py b/hydro_roll_core/document/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/document/__init__.py
+++ /dev/null
diff --git a/hydro_roll_core/exceptions.py b/hydro_roll_core/exceptions.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/exceptions.py
+++ /dev/null
diff --git a/hydro_roll_core/feature/__init__.py b/hydro_roll_core/feature/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/feature/__init__.py
+++ /dev/null
diff --git a/hydro_roll_core/libcore.pyi b/hydro_roll_core/libcore.pyi
deleted file mode 100644
index 09cfc3d..0000000
--- a/hydro_roll_core/libcore.pyi
+++ /dev/null
@@ -1,5 +0,0 @@
-class libcore(object):
- """Core library for hydro roll"""
-
- def __init__(self, name: str = ""): ...
- def process_rule_pack(self, rule_pack: str) -> str: ...
diff --git a/hydro_roll_core/log.py b/hydro_roll_core/log.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/log.py
+++ /dev/null
diff --git a/hydro_roll_core/performance/__init__.py b/hydro_roll_core/performance/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/performance/__init__.py
+++ /dev/null
diff --git a/hydro_roll_core/py.typed b/hydro_roll_core/py.typed
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/py.typed
+++ /dev/null
diff --git a/hydro_roll_core/rule_package.py b/hydro_roll_core/rule_package.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/rule_package.py
+++ /dev/null
diff --git a/hydro_roll_core/rules/BaseRule/JudgeRule.py b/hydro_roll_core/rules/BaseRule/JudgeRule.py
deleted file mode 100644
index 20e1989..0000000
--- a/hydro_roll_core/rules/BaseRule/JudgeRule.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import dataclasses
-from dataclasses import dataclass
-from typing import Literal, Optional, Union
-from typing_extensions import override
-
-@dataclass
-class JudgeRule(object):
- """判定规则"""
- property: type
-
-class Custom(JudgeRule):
- ...
-
-class Attribute(Custom):
- ...
-
-class Skill(Custom):
- ...
diff --git a/hydro_roll_core/rules/BaseRule/__init__.py b/hydro_roll_core/rules/BaseRule/__init__.py
deleted file mode 100644
index 5730aa8..0000000
--- a/hydro_roll_core/rules/BaseRule/__init__.py
+++ /dev/null
@@ -1,46 +0,0 @@
-import dataclasses
-from dataclasses import dataclass
-from typing import Literal, Optional, Union
-from typing_extensions import override
-
-
-@dataclass
-class CharacterCard(object):
- """Docstring for CharacterCard."""
- property: type
-
- class Information(object):
- age: Optional[Union[int, str]]
- race: Optional[str]
- gender: Optional[str]
- group: Optional[str]
-
-
-@dataclass
-class CustomRule(object):
- """Docstring for CustomRule."""
- property: type
-
-
-@dataclass
-class ExpansionRule(object):
- """Docstring for ExpansionRule."""
- property: type
-
-
-@dataclass
-class Wiki(object):
- """Docstring for Wiki."""
- property: type
-
-
-@dataclass
-class Query(object):
- """Docstring for Query."""
- property: type
-
-
-@dataclass
-class Duration(object):
- """Docstring for Duration."""
- property: type
diff --git a/hydro_roll_core/rules/__init__.py b/hydro_roll_core/rules/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/rules/__init__.py
+++ /dev/null
diff --git a/hydro_roll_core/typing.py b/hydro_roll_core/typing.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/typing.py
+++ /dev/null
diff --git a/hydro_roll_core/utils.py b/hydro_roll_core/utils.py
deleted file mode 100644
index e69de29..0000000
--- a/hydro_roll_core/utils.py
+++ /dev/null