class 'l_02_Mountain_path_Z_Dead_body' (ZoomZone)

function l_02_Mountain_path_Z_Dead_body:__init(name, mode, PlayField)
	ZoomZone.__init(self, name, mode, PlayField)
	
	local function on_find_zd_sabre(e)
        self:entityHide(e.target)
        
        self:entityHide('zd_sabre')
        self:entityHide('zd_sabre_shadow')
        
        self.playfield:entityHide('sabre')
        
        if IsToolFound('02_loaded_harpoon') then
            self:closeAndDisable()
        end
	end
	self:registerToolFindInfo('02_sabre', 'area_find_zd_sabre', on_find_zd_sabre)
	
	local function on_apply_zd_harpoon(e)
	    self:entityHide(e.target)
	    
	    self:entityHide('zd_spear')
	    self:getEntityNamed('compositionfon'):getElementByName('lnta'):setOpacity(0)
	 
	    self.playfield:entityHide('spear')
	    
	    if IsToolFound('02_sabre') then
            self:closeAndDisable()
        end
        if not e.save then
        	self:playSound('02_apply_zd_harpoon')
        end
        
        self:findTool('02_loaded_harpoon')
	end
	self:registerToolApplyInfo('01_harpoon', 'area_apply_zd_harpoon', on_apply_zd_harpoon, 'BBT_02_NEED_HARPOON')
end

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

function l_02_Mountain_path_Z_Dead_body:CreateLoaderTable()
	local objects =
	{
		{ name = 'zd_bg',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Dead_body/zd_bg.jpg',  width = 640,  height = 480,  },
		{ name = 'zd_sabre_shadow',  entityType = 'SpriteEntity',  x = 746,  y = 406,  order = 10,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Dead_body/zd_sabre_shadow.png',  width = 166,  height = 129,  },
		{ name = 'zd_sabre',  entityType = 'SpriteEntity',  x = 744,  y = 387,  order = 15,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Dead_body/zd_sabre.png',  width = 166,  height = 148,  },
		{ name = 'zd_spear',  entityType = 'SpriteEntity',  x = 348,  y = 249,  order = 20,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/02_Mountain_path/Z_Dead_body/zd_spear.png',  width = 234,  height = 148,  },
		{ name = 'area_apply_zd_harpoon',  entityType = 'SpriteEntity',  x = 349,  y = 247,  order = 100,  angle = 30,  scaleX = 2.8,  scaleY = 0.8,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = true,  width = 100,  height = 100,  },
		{ name = 'area_find_zd_sabre',  entityType = 'SpriteEntity',  x = 745,  y = 390,  order = 100,  angle = -40,  scaleX = 2.2,  scaleY = 0.8,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = true,  width = 100,  height = 100,  },
		{ name = '02_Mountain_path_Z_Dead_body_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_Dead_body_Animation.lua',  },
		{ name = 'composition21_ofis_manager',  entityType = 'CompositionSequence',  parentName = '02_Mountain_path_Z_Dead_body_Animation',  x = 0,  y = 0,  order = 0,  editingLocked = false,  treeItemIsExpanded = false,  isCyclic = true,  speed = 1,  },
		{ name = 'compositionfon',  entityType = 'CompositionSequence',  parentName = '02_Mountain_path_Z_Dead_body_Animation',  x = 0,  y = 0,  order = 0,  editingLocked = false,  treeItemIsExpanded = false,  isCyclic = true,  speed = 1,  },
	}
	return objects
end
