diff options
Diffstat (limited to 'hrc/rules/BaseRule')
| -rw-r--r-- | hrc/rules/BaseRule/JudgeRule.py | 13 | ||||
| -rw-r--r-- | hrc/rules/BaseRule/__init__.py | 46 |
2 files changed, 59 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 |
