mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-14 07:12:34 +00:00
19 lines
343 B
Ruby
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 |