aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/hrc/rules
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 /hrc/rules
parent2e5b7e8ab75e0d80066d1ef5619d10fe827fd5a8 (diff)
downloadHydroRollCore-a2477b28057251c4685dbf0b56359dee7b595bfa.tar.gz
HydroRollCore-a2477b28057251c4685dbf0b56359dee7b595bfa.zip
refactor(filetree): rename package's namespace as `hrc`
Diffstat (limited to 'hrc/rules')
-rw-r--r--hrc/rules/BaseRule/JudgeRule.py13
-rw-r--r--hrc/rules/BaseRule/__init__.py46
-rw-r--r--hrc/rules/__init__.py1
3 files changed, 60 insertions, 0 deletions
diff --git a/hrc/rules/BaseRule/JudgeRule.py b/hrc/rules/BaseRule/JudgeRule.py
new file mode 100644
index 0000000..20d28a2
--- /dev/null
+++ b/hrc/rules/BaseRule/JudgeRule.py
@@ -0,0 +1,13 @@
+import dataclasses
+from dataclasses import dataclass
+from typing import Literal, Optional, Union
+
+@dataclass
+class Custom(object):
+ ...
+
+class Attribute(Custom):
+ ...
+
+class Skill(Custom):
+ ...
diff --git a/hrc/rules/BaseRule/__init__.py b/hrc/rules/BaseRule/__init__.py
new file mode 100644
index 0000000..4d3bc9d
--- /dev/null
+++ b/hrc/rules/BaseRule/__init__.py
@@ -0,0 +1,46 @@
+import dataclasses
+from dataclasses import dataclass
+from typing import Literal, Optional, Union
+
+from . import JudgeRule
+
+@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/hrc/rules/__init__.py b/hrc/rules/__init__.py
new file mode 100644
index 0000000..be96d47
--- /dev/null
+++ b/hrc/rules/__init__.py
@@ -0,0 +1 @@
+from . import BaseRule \ No newline at end of file