Coverage for thb/__init__.py : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# -*- coding: utf-8 -*-
3# -- stdlib --
4from typing import Dict, Type
6# -- third party --
7# -- own --
8from thb.mode import THBattle
9from thb.thb2v2 import THBattle2v2
10from thb.thbfaith import THBattleFaith
11from thb.thbrole import THBattleRole
12from thb.thbkof import THBattleKOF
13from thb.thbnewbie import THBattleNewbie
16# -- code --
17import thb.item # noqa, init it
18import thb.meta # noqa, init it
20modes: Dict[str, Type[THBattle]] = {}
21modelst = [
22 THBattleKOF,
23 THBattleRole,
24 THBattleFaith,
25 THBattle2v2,
26 THBattleNewbie,
27]
29for g in modelst:
30 modes[g.__name__] = g
32del modelst, g
34modes_kedama = {
35 'THBattleNewbie',
36 'THBattleKOF',
37}