Using static constants for classes and groups
This commit is contained in:
parent
0e9243a423
commit
27c8f9ac70
@ -18,10 +18,11 @@ class CombinedCompetitionClass:
|
|||||||
Class_t = CompetitionClass | CombinedCompetitionClass
|
Class_t = CompetitionClass | CombinedCompetitionClass
|
||||||
|
|
||||||
class CompetitionClassParser:
|
class CompetitionClassParser:
|
||||||
|
NEWC = CompetitionClass('Newc.')
|
||||||
|
BEG = CompetitionClass('Beg.')
|
||||||
|
ADV = CompetitionClass('Adv.')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.NEWC = CompetitionClass('Newc.')
|
|
||||||
self.BEG = CompetitionClass('Beg.')
|
|
||||||
self.ADV = CompetitionClass('Adv.')
|
|
||||||
|
|
||||||
self.mapNames = {
|
self.mapNames = {
|
||||||
'Newc': self.NEWC,
|
'Newc': self.NEWC,
|
||||||
|
@ -18,10 +18,11 @@ class CombinedGroup:
|
|||||||
Group_t = Group | CombinedGroup
|
Group_t = Group | CombinedGroup
|
||||||
|
|
||||||
class GroupParser:
|
class GroupParser:
|
||||||
|
KIN = Group('Kin.')
|
||||||
|
JUN = Group('Jun.')
|
||||||
|
JUG = Group('Jug.')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.KIN = Group('Kin.')
|
|
||||||
self.JUN = Group('Jun.')
|
|
||||||
self.JUG = Group('Jug.')
|
|
||||||
|
|
||||||
self.mapNames = {
|
self.mapNames = {
|
||||||
'Kin': self.KIN,
|
'Kin': self.KIN,
|
||||||
|
Loading…
Reference in New Issue
Block a user