class 'l_06_Town_Z_Paper_Plane' (ZoomZone)

function l_06_Town_Z_Paper_Plane:__init(name, mode, PlayField)
	ZoomZone.__init(self, name, mode, PlayField)

	-- find plane ---------------------------------------------------------
	do
		local function on_take_note(event)
			
			self:findTool('06_paper_plane_letter')
		end
		local function on_find_note(event)
			self.playfield:entityHide('Layer_plane')
			self.playfield:addFlyNote('Note_06_Papper_plane', event.save, 'Layer_Fly_06_Papper_plane', true, self:getEntityNamed('area_find_zpp_plane'), nil, Vector2f(0.5, 0.5), on_take_note)
			self:closeAndDisable()

			addGameTask('12')

			if not event.save then
				local node = path_manager:findNode(NodeType.SCENE, '04_Gazebo')
		        if node then
		            node:setState(NodeState.ENABLED)
		        end    

		        local node = path_manager:findNode(NodeType.SCENE, '07_Cantellos_shop')
		        if node then
		            node:setState(NodeState.ENABLED)
		        end   
			end
		end
		self:registerActiveObject('area_find_zpp_plane', on_find_note, false)

	end
	-----------------------------------------------------------------------
end

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

function l_06_Town_Z_Paper_Plane:CreateLoaderTable()
	local objects =
	{
		{ name = 'anchor_zpp_sprites',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 2,  color = {r = 1, g = 1, b = 1, a = 0},  editingLocked = false,  treeItemIsExpanded = true,  width = 2,  height = 2,  },
		{ name = 'zpp_plane',  entityType = 'SpriteEntity',  parentName = 'anchor_zpp_sprites',  x = 72,  y = -49,  order = 1,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/06_Town/Z_Paper_Plane/zpp_plane.png',  width = 328,  height = 262,  },
		{ name = 'anchor_zpp_areas',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 4,  color = {r = 1, g = 1, b = 1, a = 0},  editingLocked = false,  treeItemIsExpanded = true,  width = 2,  height = 2,  },
		{ name = 'area_find_zpp_plane',  entityType = 'SpriteEntity',  parentName = 'anchor_zpp_areas',  x = 77,  y = -61,  order = 0,  scaleX = 3.4,  scaleY = 3,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = false,  width = 100,  height = 100,  },
		{ name = 'zpp_Bg',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 0,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/06_Town/Z_Paper_Plane/zpp_Bg.jpg',  width = 640,  height = 480,  },
		{ name = '06_Town_Anim_Z_Papper_plane',  entityType = 'CompositionContainer',  x = 192,  y = 144,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  path = 'Data/Scripts/Scenes/06_Town/Anim/06_Town_Anim_Z_Papper_plane.lua',  },
		{ name = 'compositionPh3_loc6_zoom_paperplane_BG',  entityType = 'CompositionSequence',  parentName = '06_Town_Anim_Z_Papper_plane',  x = 0,  y = 0,  order = 0,  editingLocked = false,  treeItemIsExpanded = false,  speed = 1,  },
	}
	return objects
end
