mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-13 23:02:35 +00:00
20 lines
349 B
Ruby
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 |