This repository has been archived on 2019-12-09. You can view files and clone it, but cannot push or open issues or pull requests.
pacman2/engine/servers/server.py
2019-12-04 18:17:52 +01:00

21 lines
419 B
Python

from abc import abstractmethod
from ..singleton import Singleton
class Server(metaclass=Singleton):
def __init__(self):
super().__init__()
self._components = []
def register_component(self, component):
self._components.append(component)
def unregister_component(self, component):
self._components.remove(component)
@abstractmethod
def step(self):
pass