summaryrefslogtreecommitdiffhomepage
path: root/app/ECS/signatures.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-05-15 03:47:15 -0400
committerrealtradam <[email protected]>2021-05-15 03:47:15 -0400
commit24524ad0b1c7a2aeea0bad28092e946cef8026fa (patch)
tree93282c6e5250a23d1829f52c40c5bbde05c69046 /app/ECS/signatures.rb
parent1bf39aaa0d736b1976a32030fd1c18e0eedf1781 (diff)
downloadtypemon-code-24524ad0b1c7a2aeea0bad28092e946cef8026fa.tar.gz
typemon-code-24524ad0b1c7a2aeea0bad28092e946cef8026fa.zip
working ECS
Diffstat (limited to 'app/ECS/signatures.rb')
-rw-r--r--app/ECS/signatures.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/ECS/signatures.rb b/app/ECS/signatures.rb
new file mode 100644
index 0000000..67464ad
--- /dev/null
+++ b/app/ECS/signatures.rb
@@ -0,0 +1,23 @@
+class ECS
+ class ID
+ class <<self
+ def renderable
+ @renderable ||= '0_001'.to_i(2)
+ end
+
+ def sprite
+ @sprite ||= '0_010'.to_i(2)
+ end
+
+ def label
+ @label ||= '0_100'.to_i(2)
+ end
+
+ def player_control
+ @player_control ||= '1_000'.to_i(2)
+ end
+ end
+ end
+end
+
+