mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 08:03:30 +08:00
Update _player.py
This commit is contained in:
parent
b2652a2748
commit
68a388c1d5
@ -15,6 +15,7 @@ from ba._messages import DeathType, DieMessage
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Optional, Sequence, Any, Union, Callable
|
from typing import Optional, Sequence, Any, Union, Callable
|
||||||
import ba
|
import ba
|
||||||
|
from bastd.actor.playerspaz import PlayerSpaz
|
||||||
|
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
PlayerType = TypeVar('PlayerType', bound='ba.Player')
|
PlayerType = TypeVar('PlayerType', bound='ba.Player')
|
||||||
@ -62,6 +63,8 @@ class Player(Generic[TeamType]):
|
|||||||
color: Sequence[float]
|
color: Sequence[float]
|
||||||
highlight: Sequence[float]
|
highlight: Sequence[float]
|
||||||
|
|
||||||
|
playerspaztype: type['PlayerSpaz']
|
||||||
|
|
||||||
_team: TeamType
|
_team: TeamType
|
||||||
_sessionplayer: ba.SessionPlayer
|
_sessionplayer: ba.SessionPlayer
|
||||||
_nodeactor: Optional[ba.NodeActor]
|
_nodeactor: Optional[ba.NodeActor]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user