C# Class Universe.Services.MapService

Inheritance: IService, IMapService
Show file Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
FinishedStartup ( ) : void
Initialize ( IConfigSource config, IRegistryCore registry ) : void
MapAPIRequest ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
MapRequest ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
Start ( IConfigSource config, IRegistryCore registry ) : void

Private Methods

Method Description
BuildMapTile ( int regionX, int regionY, List regions ) : Bitmap
BuildMapTile ( int mapView, int regionX, int regionY, List regions ) : Bitmap
CacheMapTexture ( int maplayer, int regionX, int regionY, Bitmap mapTexture, bool forced = false ) : byte[]
CreateCacheDirectories ( string cacheDir ) : void
DisposeTexture ( Bitmap bitmap ) : void
FindCachedImage ( int maplayer, int regionX, int regionY ) : Bitmap
FindCachedImage ( string name ) : byte[]
GetEncoderInfo ( String mimeType ) : System.Drawing.Imaging.ImageCodecInfo
IsStaticBlank ( Bitmap bitmap ) : bool
ResizeBitmap ( Bitmap b, int nWidth, int nHeight ) : Bitmap
SaveCachedImage ( int maplayer, int regionX, int regionY, byte data ) : void

Method Details

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

MapAPIRequest() public method

public MapAPIRequest ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

MapRequest() public method

public MapRequest ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void