Skip to content

Commit

Permalink
feat: Add fields to character trace tree info:
Browse files Browse the repository at this point in the history
- anchor: position of trace tree point.
- max_level: max level of trace tree point.
- parent: preceding point of trace tree point.
  • Loading branch information
KT-Yeh committed Aug 14, 2023
1 parent fb7ab6f commit 6c6b02c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions mihomo/models/combat.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,21 @@ class TraceTreeNode(BaseModel):
Attributes:
- id (`int`): The ID of the trace.
- level (`int`): The level of the trace.
- max_level (`int`): The max level of the trace.
- icon (`str`): The icon of the trace.
- anchor (`str`): The position of the trace tree node.
- parent (`int` | `None`): The preceding node id of trace.
"""

id: int
"""The ID of the trace"""
level: int
"""The level of the trace"""
max_level: int
"""The max level of the trace"""
icon: str
"""The icon of the trace"""
anchor: str
"""The position of the trace tree node"""
parent: int | None = None
"""The preceding node id of trace"""
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mihomo"
version = "1.1.5"
version = "1.1.6"
authors = [
{ name="KT", email="[email protected]" },
]
Expand Down

0 comments on commit 6c6b02c

Please sign in to comment.