Files
i-mic-rts/lib/zorder.rb

20 lines
349 B
Ruby

class IMICRTS
class ZOrder
base_z = 5
enum = [
:TILE,
:ORE,
:DECORATION,
:GROUND_VEHICLE,
:BUILDING,
:AIR_VEHICLE,
:ENTITY_RADIUS,
:ENTITY_GIZMOS, # Health bar and the like
]
enum.each_with_index do |constant, index|
self.const_set(constant, index + base_z)
end
end
end