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


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