mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 14:54:00 -06:00
ui: allow loading characters directly from cli (#16)
This commit is contained in:
+9
-1
@@ -1,13 +1,21 @@
|
||||
import abc
|
||||
import argparse
|
||||
import typing as T
|
||||
|
||||
from pqcli.mechanic import Player
|
||||
from pqcli.roster import Roster
|
||||
|
||||
|
||||
class BaseUserInterface(abc.ABC):
|
||||
def __init__(self, roster: Roster, args: argparse.Namespace) -> None:
|
||||
def __init__(
|
||||
self,
|
||||
roster: Roster,
|
||||
player: T.Optional[Player],
|
||||
args: argparse.Namespace,
|
||||
) -> None:
|
||||
self.roster = roster
|
||||
self.args = args
|
||||
self.player = player
|
||||
|
||||
@abc.abstractmethod
|
||||
def run(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user