Table of Contents

Class LocalFileTileFetcher

Namespace
LansMap.Map.Network
public sealed class LocalFileTileFetcher : ITileFetcher, IDisposable
Inheritance
object
LocalFileTileFetcher
Implements

Constructors

LocalFileTileFetcher(int)

public LocalFileTileFetcher(int slotCount)

Parameters

slotCount int

Properties

BytesAreAlreadyDurable

public bool BytesAreAlreadyDurable { get; }

Property Value

bool

SlotCount

public int SlotCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

IsFree(int)

public bool IsFree(int slot)

Parameters

slot int

Returns

bool

LastError(int)

public TileFetchError LastError(int slot)

Parameters

slot int

Returns

TileFetchError

Poll(int, out TileCoord, out float, out byte[], out int)

public FetchStatus Poll(int slot, out TileCoord tile, out float progress, out byte[] bytes, out int length)

Parameters

slot int
tile TileCoord
progress float
bytes byte[]
length int

Returns

FetchStatus

Poll(int, out TileCoord, out float, out byte[], out int, out bool)

public FetchStatus Poll(int slot, out TileCoord tile, out float progress, out byte[] bytes, out int length, out bool pooled)

Parameters

slot int
tile TileCoord
progress float
bytes byte[]
length int
pooled bool

Returns

FetchStatus

Release(int)

public void Release(int slot)

Parameters

slot int

Start(int, TileCoord, string)

public void Start(int slot, TileCoord tile, string path)

Parameters

slot int
tile TileCoord
path string