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

19 lines
343 B
Ruby

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