diff options
| author | realtradam <[email protected]> | 2021-05-18 04:49:47 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-05-18 04:49:47 -0400 |
| commit | 120b693ffd02bc5c7f41ff2b9657facc7117daae (patch) | |
| tree | 59e9f982dc2ee994cbbb65411065b35445048502 /app/ECS/signatures.rb | |
| parent | 24524ad0b1c7a2aeea0bad28092e946cef8026fa (diff) | |
| download | typemon-code-120b693ffd02bc5c7f41ff2b9657facc7117daae.tar.gz typemon-code-120b693ffd02bc5c7f41ff2b9657facc7117daae.zip | |
.
Diffstat (limited to 'app/ECS/signatures.rb')
| -rw-r--r-- | app/ECS/signatures.rb | 38 |
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 |
