mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using OpenMetaverse;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UniRx;
|
|
using UnityEngine;
|
|
using Raindrop.Map;
|
|
using Raindrop.Map.Model;
|
|
|
|
namespace Raindrop
|
|
{
|
|
// contains a function and mapfetcher for fetching and decoding the map tile. does not show the image.
|
|
|
|
class TestTextureFetcher : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
public MapService MapService; //fetching logic + pooling data here
|
|
|
|
|
|
private void Awake()
|
|
{
|
|
MainThreadDispatcher.Initialize();
|
|
MapService = new MapService();
|
|
}
|
|
|
|
|
|
public void testfetch()
|
|
{
|
|
|
|
//IAsyncResult result = request.BeginGetResponse(Finish, request);
|
|
//ServicePointManager.ServerCertificateValidationCallback =
|
|
// (sender, certificate, chain, sslPolicyErrors) => true;
|
|
|
|
|
|
var handle = Utils.UIntsToLong(256 * 1000, 256 * 1000);
|
|
throw new NotImplementedException("we recently refactored the mapservice interface.");
|
|
// MapService.GetRegionTileExternal(handle, 1);
|
|
Debug.Log("end of initial fetch call.");
|
|
}
|
|
|
|
|
|
}
|
|
}
|