Skip to content

Commit 45c7115

Browse files
committed
add: examples (gamemode convert)
1 parent 789de1b commit 45c7115

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ async def main() -> None:
141141
beatmap.init(path2)
142142
print(beatmap)
143143

144+
# Convert calculate
145+
result3 = Calculator(mode=3).calculate(beatmap)
146+
print(result3)
147+
144148

145149
if __name__ == '__main__':
146150
async_run(main())

examples.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ async def main() -> None:
8686
beatmap.init(path2)
8787
print(beatmap)
8888

89+
# Convert calculate
90+
result3 = Calculator(mode=3).calculate(beatmap)
91+
print(result3)
92+
8993

9094
if __name__ == '__main__':
9195
async_run(main())

peace_performance_python/objects/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class HitObject:
242242
'''
243243
_raw_attrs = ('start_time', 'sound', 'end_time', 'is_circle',
244244
'is_slider', 'is_spinner', 'kind_str',)
245-
_extra_attrs = ('_raw', 'kind', 'pos')
245+
_extra_attrs = ('_raw', 'kind', 'pos',)
246246
__slots__ = _raw_attrs + _extra_attrs
247247

248248
_raw: NativeHitObject

0 commit comments

Comments
 (0)