1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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