function MonsterManager.spawnMonsterInRoom(u)local W=u:getRegions()local O=W[math.random(1,#W)]spawn(function()local u=getRandomClearLocationInRegionAsync(O,CLEAR_AREA_TO_SPAWN)monsters:add(monsterId,u,interests)monsterId=monsterId+1 end)end

function MonsterManager.spawnMonsterInRoom(room)
	local regions = room:getRegions()
	local region = regions[math.random(1, #regions)]

	spawn(
		function()
			local position = getRandomClearLocationInRegionAsync(region, CLEAR_AREA_TO_SPAWN)

			monsters:add(monsterId, position, interests)

			monsterId = monsterId + 1
		end
	)
end
