Skip to content

Commit

Permalink
fix: 修改 NoteType 部分表现
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Apr 13, 2024
1 parent 909ac45 commit 11163a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bestdori/utils/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 谱面音符类
class NoteType:
'''谱面音符类'''
type_: str
type: str
'''音符类型'''
beat: float
'''节拍数'''
Expand All @@ -20,6 +20,10 @@ def __init__(self, **values) -> None:
setattr(self, key, value)
return

def __getitem__(self, key: str) -> Any:
'''获取属性'''
return getattr(self, key)

# 节拍数增减
def beat_move(self, beat: float) -> None:
'''节拍数增减
Expand Down Expand Up @@ -207,6 +211,7 @@ def beat_move(self, beat: float) -> None:

__all__ = [
'NoteType',
'Connection',
'BPM',
'Single',
'Directional',
Expand Down

0 comments on commit 11163a0

Please sign in to comment.