bacommon.app
Common high level values/functionality related to apps.
1# Released under the MIT License. See LICENSE for details. 2# 3"""Common high level values/functionality related to apps.""" 4 5from __future__ import annotations 6 7from enum import Enum 8from typing import TYPE_CHECKING 9 10if TYPE_CHECKING: 11 pass 12 13 14class AppExperience(Enum): 15 """Overall experience that can be provided by a Ballistica app. 16 17 This corresponds generally, but not exactly, to distinct apps built 18 with Ballistica. However, a single app may support multiple experiences, 19 or there may be multiple apps targeting one experience. Cloud components 20 such as leagues are generally associated with an AppExperience. 21 """ 22 23 # A special experience category that is supported everywhere. Used 24 # for the default empty AppMode when starting the app, etc. 25 EMPTY = 'empty' 26 27 # The traditional BombSquad experience: multiple players using 28 # controllers in a single arena small enough for all action to be 29 # viewed on a single screen. 30 MELEE = 'melee' 31 32 # The traditional BombSquad Remote experience; buttons on a 33 # touch-screen allowing a mobile device to be used as a game 34 # controller. 35 REMOTE = 'remote'
class
AppExperience(enum.Enum):
15class AppExperience(Enum): 16 """Overall experience that can be provided by a Ballistica app. 17 18 This corresponds generally, but not exactly, to distinct apps built 19 with Ballistica. However, a single app may support multiple experiences, 20 or there may be multiple apps targeting one experience. Cloud components 21 such as leagues are generally associated with an AppExperience. 22 """ 23 24 # A special experience category that is supported everywhere. Used 25 # for the default empty AppMode when starting the app, etc. 26 EMPTY = 'empty' 27 28 # The traditional BombSquad experience: multiple players using 29 # controllers in a single arena small enough for all action to be 30 # viewed on a single screen. 31 MELEE = 'melee' 32 33 # The traditional BombSquad Remote experience; buttons on a 34 # touch-screen allowing a mobile device to be used as a game 35 # controller. 36 REMOTE = 'remote'
Overall experience that can be provided by a Ballistica app.
This corresponds generally, but not exactly, to distinct apps built with Ballistica. However, a single app may support multiple experiences, or there may be multiple apps targeting one experience. Cloud components such as leagues are generally associated with an AppExperience.
EMPTY =
<AppExperience.EMPTY: 'empty'>
MELEE =
<AppExperience.MELEE: 'melee'>
REMOTE =
<AppExperience.REMOTE: 'remote'>
Inherited Members
- enum.Enum
- name
- value