# Released under the MIT License. See LICENSE for details.#"""Functionality related to cloud based assets."""from__future__importannotationsfromenumimportEnumfromtypingimportTYPE_CHECKINGifTYPE_CHECKING:pass# NOTE TO SELF:# Whenever adding login types here, make sure to update all# basn nodes before trying to send values through to bamaster,# as they need to be extractable by basn en route.
[docs]classLoginType(Enum):"""Types of logins available."""# Email/passwordEMAIL='email'# Google Play Game ServicesGPGS='gpgs'# Apple's Game CenterGAME_CENTER='game_center'@propertydefdisplayname(self)->str:"""Human readable name for this value."""cls=type(self)matchself:casecls.EMAIL:return'Email/Password'casecls.GPGS:return'Google Play Games'casecls.GAME_CENTER:return'Game Center'@propertydefdisplaynameshort(self)->str:"""Human readable name for this value."""cls=type(self)matchself:casecls.EMAIL:return'Email'casecls.GPGS:return'GPGS'casecls.GAME_CENTER:return'Game Center'