UNPKG
@battle-racing/br-common-lib
Version:
latest (4.6.2)
4.6.2
4.6.1
4.6.0
4.5.0
4.4.0
4.3.0
4.1.0
3.8.0
3.5.0
3.4.0
3.3.0
3.2.0
3.1.0
3.0.0
2.5.0
2.4.1
2.4.0
2.3.1
2.3.0
2.1.0
2.0.0
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Common library for all Battle Racing Repositorios
@battle-racing/br-common-lib
/
src
/
types
/
game
/
battle
/
Battle.ts
12 lines
(9 loc)
•
253 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
type
{
Game
,
GameKartState
}
from
'../Game'
;
export
interface
BattleKartState
extends
GameKartState
{
lives
:
number
; }
export
interface
Battle
extends
Game
{
type
:
'Battle'
;
lives
:
number
;
kartsState
:
Record
<
string
,
BattleKartState
>; }