class 'l_02_Mountain_path_Z_Bush' (ZoomZone)

function l_02_Mountain_path_Z_Bush:__init(name, mode, PlayField)
	ZoomZone.__init(self, name, mode, PlayField)
	
	local close_counter = 2
	local function decrement_close_counter()
	    close_counter = close_counter - 1
	    if close_counter <= 0 then
	        self:closeAndDisable()
	    end
	end
	
	local function on_find_zb_wheel_block(e)
        self:entityHide(e.target)
        
        self:entityHide('zb_wheel_block')
        
        self.playfield:entityHide('wheel_block_1')
        
        decrement_close_counter()
	end
	self:registerToolFindInfo('02_wheel_block', 'area_find_zb_wheel_block', on_find_zb_wheel_block)
	
	local function on_find_zb_number_key_2(e)
        self:entityHide(e.target)
        
        self:entityHide('zb_number_key_2')
        
        self.playfield:entityHide('number_key')
        
        decrement_close_counter()
	end
	self:registerToolFindInfo('02_number_key_2', 'area_find_zb_number_key_2', on_find_zb_number_key_2)
end

--------------------------------------------------------------------------------
--                      GENERATED CONTENT. DO NOT EDIT.                       --
--------------------------------------------------------------------------------

function l_02_Mountain_path_Z_Bush:CreateLoaderTable()
	local objects =
	{
		{ name = 'zb_bg',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 0,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Bush/zb_bg.jpg',  width = 640,  height = 480,  },
		{ name = '02_Mountain_path_Z_Bush_Animation',  entityType = 'CompositionContainer',  x = 192,  y = 144,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  path = 'Data/Scripts/Scenes/02_Mountain_path/Animations/02_Mountain_path_Z_Bush_Animation.lua',  },
		{ name = 'compositionfon',  entityType = 'CompositionSequence',  parentName = '02_Mountain_path_Z_Bush_Animation',  x = 0,  y = 0,  order = 0,  editingLocked = false,  treeItemIsExpanded = false,  isCyclic = true,  speed = 1,  },
		{ name = 'zb_number_key_2',  entityType = 'SpriteEntity',  x = 314,  y = 239,  order = 10,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Bush/zb_number_key_2.png',  width = 204,  height = 170,  },
		{ name = 'zb_wheel_block',  entityType = 'SpriteEntity',  x = 508,  y = 448,  order = 10,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Bush/zb_wheel_block.png',  width = 502,  height = 348,  },
		{ name = 'zb_cover',  entityType = 'SpriteEntity',  x = 491,  y = 417,  order = 20,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Bush/zb_cover.png',  width = 598,  height = 416,  },
		{ name = 'area_find_zb_wheel_block',  entityType = 'SpriteEntity',  x = 537,  y = 405,  order = 100,  angle = 7,  scaleX = 4,  scaleY = 1.6,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = true,  width = 100,  height = 100,  },
		{ name = 'area_find_zb_number_key_2',  entityType = 'SpriteEntity',  x = 322,  y = 207,  order = 100,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = true,  width = 100,  height = 100,  },
	}
	return objects
end
