C# Class GW2PAO.API.Services.ZoneService

Inheritance: IZoneService
Exibir arquivo Open project: SamHurne/gw2pao

Public Methods

Method Description
GetContinent ( int continentId ) : Data.Entities.Continent

Retrieves the continent information for the given continent ID

GetContinentByMap ( int mapId ) : Data.Entities.Continent

Retrieves the continent information for the given map ID

GetContinents ( ) : IEnumerable

Retrieves continent information for all continents

GetMap ( int mapId ) : Data.Entities.Map

Retrieves the map information for the given map ID

GetMap ( int continentId, Point continentCoordinates ) : Data.Entities.Map

Retrieves map information using the provided continent coordinates, or null if the coordinates do not fall into any current zone

GetZoneItems ( int mapId ) : IEnumerable

Retrieves a collection of ZoneItems located in the zone with the given mapID

GetZoneItemsByContinent ( int continentId ) : IEnumerable

Retrieves a collection of zone items located in the given continent

GetZoneName ( int mapId ) : string

Retrieves the name of the zone using the given mapID

Initialize ( ) : void

Initializes the zone service

ZoneService ( ) : System

Static constructor, initializes the MapNames static property

Private Methods

Method Description
GetFloor ( int continentId, int floorId ) : GW2NET.Maps.Floor

Retrieves the floor data for the given floor ID, using the internal cache when possible

Method Details

GetContinent() public method

Retrieves the continent information for the given continent ID
public GetContinent ( int continentId ) : Data.Entities.Continent
continentId int
return Data.Entities.Continent

GetContinentByMap() public method

Retrieves the continent information for the given map ID
public GetContinentByMap ( int mapId ) : Data.Entities.Continent
mapId int The ID of a zone
return Data.Entities.Continent

GetContinents() public method

Retrieves continent information for all continents
public GetContinents ( ) : IEnumerable
return IEnumerable

GetMap() public method

Retrieves the map information for the given map ID
public GetMap ( int mapId ) : Data.Entities.Map
mapId int The ID of a zone
return Data.Entities.Map

GetMap() public method

Retrieves map information using the provided continent coordinates, or null if the coordinates do not fall into any current zone
public GetMap ( int continentId, Point continentCoordinates ) : Data.Entities.Map
continentId int ID of the continent that the coordinates are for
continentCoordinates Point Continent coordinates to use
return Data.Entities.Map

GetZoneItems() public method

Retrieves a collection of ZoneItems located in the zone with the given mapID
public GetZoneItems ( int mapId ) : IEnumerable
mapId int The mapID of the zone to retrieve zone items for
return IEnumerable

GetZoneItemsByContinent() public method

Retrieves a collection of zone items located in the given continent
public GetZoneItemsByContinent ( int continentId ) : IEnumerable
continentId int ID of the continent
return IEnumerable

GetZoneName() public method

Retrieves the name of the zone using the given mapID
public GetZoneName ( int mapId ) : string
mapId int The mapID of the zone to retrieve the name for
return string

Initialize() public method

Initializes the zone service
public Initialize ( ) : void
return void

ZoneService() public method

Static constructor, initializes the MapNames static property
public ZoneService ( ) : System
return System