aboutsummaryrefslogtreecommitdiff
path: root/kennel/engine/components/component.py
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth@simponic.xyz>2024-08-20 17:34:18 -0700
committerElizabeth Hunt <elizabeth@simponic.xyz>2024-08-20 17:34:18 -0700
commitb4140460014d1fc134df9127600f6da2346376e3 (patch)
tree5bee11079f3ab9e3fd5d2a68cee483c2c33557f4 /kennel/engine/components/component.py
parent6f223d2462df5e08856fb83fd76773a8af33acf9 (diff)
downloadkennel.hatecomputers.club-b4140460014d1fc134df9127600f6da2346376e3.tar.gz
kennel.hatecomputers.club-b4140460014d1fc134df9127600f6da2346376e3.zip
init commit with base ECS and Network System
Diffstat (limited to 'kennel/engine/components/component.py')
-rw-r--r--kennel/engine/components/component.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/kennel/engine/components/component.py b/kennel/engine/components/component.py
new file mode 100644
index 0000000..c8ef2d0
--- /dev/null
+++ b/kennel/engine/components/component.py
@@ -0,0 +1,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 dict(self) -> dict:
+ pass