1
0
mirror of synced 2024-11-27 22:40:49 +01:00

parsetja.py: Condense global lists to save space

This commit is contained in:
Viv 2023-06-02 16:33:43 -04:00
parent 0cd8c93922
commit f77f31dcd0

View File

@ -2,50 +2,11 @@
import re
HEADER_GLOBAL = [
'TITLE',
'TITLEJA',
'SUBTITLE',
'SUBTITLEJA',
'BPM',
'WAVE',
'OFFSET',
'DEMOSTART',
'GENRE',
]
HEADER_COURSE = [
'COURSE',
'LEVEL',
'BALLOON',
'SCOREINIT',
'SCOREDIFF',
'TTRO'
'WBEAT',
]
COMMAND = [
'START',
'END',
'GOGOSTART',
'GOGOEND',
'MEASURE',
'SCROLL',
'BPMCHANGE',
'DELAY',
'BRANCHSTART',
'BRANCHEND',
'SECTION',
'N',
'E',
'M',
'LEVELHOLD',
'BMSCROLL',
'HBSCROLL',
'BARLINEOFF',
'BARLINEON',
'TTBREAK',
]
# Valid strings for headers and chart commands
HEADER_GLOBAL = ['TITLE', 'TITLEJA', 'SUBTITLE', 'SUBTITLEJA', 'BPM', 'WAVE', 'OFFSET', 'DEMOSTART', 'GENRE']
HEADER_COURSE = ['COURSE', 'LEVEL', 'BALLOON', 'SCOREINIT', 'SCOREDIFF', 'TTRO' 'WBEAT']
COMMAND = ['START', 'END', 'GOGOSTART', 'GOGOEND', 'BRANCHSTART', 'BRANCHEND', 'BARLINEON', 'BARLINEOFF', 'MEASURE',
'BPMCHANGE', 'DELAY', 'SECTION', 'N', 'E', 'M', 'LEVELHOLD', 'SCROLL', 'BMSCROLL', 'HBSCROLL', 'TTBREAK']
def parseLine(line):