aboutsummaryrefslogtreecommitdiff
path: root/kennel/engine/components/controllable.py
diff options
context:
space:
mode:
Diffstat (limited to 'kennel/engine/components/controllable.py')
-rw-r--r--kennel/engine/components/controllable.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/kennel/engine/components/controllable.py b/kennel/engine/components/controllable.py
new file mode 100644
index 0000000..49b0557
--- /dev/null
+++ b/kennel/engine/components/controllable.py
@@ -0,0 +1,13 @@
+from .component import Component, ComponentType
+
+
+class Controllable(Component):
+ def __init__(self, by: str):
+ super().__init__(ComponentType.CONTROLLABLE)
+ self.by = by
+
+ def __repr__(self) -> str:
+ return f"Controllable(by={self.by})"
+
+ def dict(self) -> dict:
+ return {"by": self.by}