class PackageType(enum.Enum):
- MOD = "Mod"
+ MOD = "Clientmod"
GAME = "Game"
TXP = "Texture Pack"
def choices(cls):
return [(choice, choice.value) for choice in cls]
+ @classmethod
+ def choices_cheat(cls):
+ c = cls.choices()
+ c.remove((cls.GAME, cls.GAME.value))
+ return c
+
@classmethod
def coerce(cls, item):
return item if type(item) == PackageType else PackageType[item]