mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Added 'reserved' field to Map::Tile for building entities to claim when placed
This commit is contained in:
@@ -104,7 +104,7 @@ class IMICRTS
|
||||
end
|
||||
|
||||
class Tile
|
||||
attr_accessor :position, :grid_position, :image, :visible, :entity, :type
|
||||
attr_accessor :position, :grid_position, :image, :visible, :entity, :reserved, :type
|
||||
def initialize(position:, image:, visible:, type:, tile_size:)
|
||||
@position = position
|
||||
@grid_position = position.clone
|
||||
@@ -114,6 +114,7 @@ class IMICRTS
|
||||
@image = image
|
||||
@visible = visible
|
||||
@entity = nil
|
||||
@reserved = nil
|
||||
@type = type
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user