aboutsummaryrefslogtreecommitdiff
path: root/kennel/engine/components/component.py
blob: da551387651cedbebae9830bc25c8e84a7cbbbea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from enum import Enum
from abc import abstractmethod


class ComponentType(str, Enum):
    POSITION = "POSITION"
    CONTROLLABLE = "CONTROLLABLE"


class Component:
    def __init__(self, component_type: ComponentType):
        self.component_type = component_type

    @abstractmethod
    def to_dict(self) -> dict:
        pass