# Coverage for thb/__init__.py : 100%

## 15 statements 15 run 0 missing 0 excluded 0 partial

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 -*-

2

3# -- stdlib --

4 from typing import Dict, Type

5

6# -- third party --

7# -- own --

8 from thb.mode import THBattle

9 from thb.thb2v2 import THBattle2v2

10 from thb.thbfaith import THBattleFaith

11 from thb.thbrole import THBattleRole

12 from thb.thbkof import THBattleKOF

13 from thb.thbnewbie import THBattleNewbie

14

15

16# -- code --

17 import thb.item # noqa, init it

18 import thb.meta # noqa, init it

19

20 modes: Dict[str, Type[THBattle]] = {}

21 modelst = [

22 THBattleKOF,

23 THBattleRole,

24 THBattleFaith,

25 THBattle2v2,

26 THBattleNewbie,

27]

28

29 for g in modelst:

30 modes[g.__name__] = g

31

32 del modelst, g

33

34 modes_kedama = {

35 'THBattleNewbie',

36 'THBattleKOF',

37}