summaryrefslogtreecommitdiffhomepage
path: root/app/ECS/signatures.rb
diff options
context:
space:
mode:
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
+
+