summaryrefslogtreecommitdiffhomepage
path: root/app/ECS/signatures.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-05-18 04:49:47 -0400
committerrealtradam <[email protected]>2021-05-18 04:49:47 -0400
commit120b693ffd02bc5c7f41ff2b9657facc7117daae (patch)
tree59e9f982dc2ee994cbbb65411065b35445048502 /app/ECS/signatures.rb
parent24524ad0b1c7a2aeea0bad28092e946cef8026fa (diff)
downloadtypemon-code-120b693ffd02bc5c7f41ff2b9657facc7117daae.tar.gz
typemon-code-120b693ffd02bc5c7f41ff2b9657facc7117daae.zip
.
Diffstat (limited to 'app/ECS/signatures.rb')
-rw-r--r--app/ECS/signatures.rb38
1 files changed, 21 insertions, 17 deletions
diff --git a/app/ECS/signatures.rb b/app/ECS/signatures.rb
index 67464ad..844c66d 100644
--- a/app/ECS/signatures.rb
+++ b/app/ECS/signatures.rb
@@ -1,23 +1,27 @@
-class ECS
- class ID
- class <<self
- def renderable
- @renderable ||= '0_001'.to_i(2)
- end
+class ID
+ class <<self
+ def renderable
+ @renderable ||= '0_001'.to_i(2)
+ end
- def sprite
- @sprite ||= '0_010'.to_i(2)
- end
+ def sprite
+ @sprite ||= '0_010'.to_i(2)
+ end
- def label
- @label ||= '0_100'.to_i(2)
- end
+ def label
+ @label ||= '0_100'.to_i(2)
+ end
- def player_control
- @player_control ||= '1_000'.to_i(2)
- end
+ def player_control
+ @player_control ||= '0_001_000'.to_i(2)
end
- end
-end
+ def map
+ @map ||= '0_010_000'.to_i(2)
+ end
+ def map
+ @map ||= '0_100_000'.to_i(2)
+ end
+ end
+end