Read Potentials and Initial Testing
This commit is contained in:
26
diceplayer/shared/external/__external.py
vendored
Normal file
26
diceplayer/shared/external/__external.py
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
from diceplayer.shared.utils.dataclass_protocol import Dataclass
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class External(ABC):
|
||||
__slots__ = [
|
||||
'config'
|
||||
]
|
||||
|
||||
@abstractmethod
|
||||
def __init__(self, data: dict):
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def set_config(data: dict) -> Dataclass:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def start(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def reset(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user