class 'RoomLink' (InformContent)

function RoomLink:__init(panel)
    Node.__init(self, panel:getMainEntity(), 'RoomLink', 5)
    self.game_scene = panel.game_scene

    if self.CreateLoaderTable then
		local table_resource = self:CreateLoaderTable()
		LoadScene(self.main_entity, table_resource)
	end

	self:getEntityNamed('inform_office_trigger').onPress:add(bind(self.onOfficeClick, self))
end

---------------------------------------------------------------------------------------------------
function RoomLink:onOfficeClick()
	InformContent.onContentClick(self)
    self.game_scene:loadPlayField('Room')
end

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

function RoomLink:CreateLoaderTable()
	local objects =
	{
		{ name = 'inform_office_trigger',  entityType = 'SpriteEntity',  x = 514,  y = 384,  order = 0,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = true,  width = 87,  height = 175,  },
		{ name = 'panel_turtle',  entityType = 'SpriteEntity',  parentName = 'inform_office_trigger',  x = -4,  y = 54,  order = 0,  isVisible = false,  isRespondable = false,  scale = 0.7,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/GUI/Inform/room_link.png',  width = 102,  height = 77,  },
	}
	return objects
end
