mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Improved place buildings tool to use the grid
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
IMICRTS::Entity.define_entity(:war_factory, :building, 2_000, "Builds units") do |entity|
|
||||
tiles = [
|
||||
[false, false, false, false, false],
|
||||
[false, true, true, true, false],
|
||||
[false, true, true, true, false],
|
||||
[false, true, true, true, false],
|
||||
[false, true, true, true, false],
|
||||
]
|
||||
|
||||
IMICRTS::Entity.define_entity(:war_factory, :building, 2_000, "Builds units", tiles) do |entity|
|
||||
entity.has(:build_queue)
|
||||
entity.has(:sidebar_actions)
|
||||
entity.component(:sidebar_actions).add(:add_to_build_queue, {entity: :jeep})
|
||||
|
||||
Reference in New Issue
Block a user