mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
15 lines
454 B
Ruby
15 lines
454 B
Ruby
IMICRTS::Entity.define_entity(:helipad, :building, 1_000, "Builds and rearms helicopters") do |entity|
|
|
entity.has(:build_queue)
|
|
entity.has(:sidebar_actions)
|
|
entity.component(:sidebar_actions).add(:add_to_build_queue, {entity: :helicopter})
|
|
|
|
entity.radius = 26
|
|
entity.max_health = 100.0
|
|
|
|
entity.shell_image = "buildings/helipad/helipad_shell.png"
|
|
entity.overlay_image = "buildings/helipad/helipad_overlay.png"
|
|
|
|
entity.on_tick do
|
|
end
|
|
end
|