C# Class Aura.Channel.World.Location

Representation of a location in the world.
Used to save locations, ie a location to warp back to.
Afficher le fichier Open project: aura-project/aura Class Usage Examples

Méthodes publiques

Свойство Type Description
RegionId int
X int

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
Location ( int regionId, Position pos ) : Aura.Data

Creates new Location based on region id and position.

Location ( int regionId, int x, int y ) : Aura.Data

Creates new Location based on region id and coordinates.

Location ( long locationId ) : Aura.Data

New Location based on location id (i.e. 0x3000RRRRXXXXYYYY).

Location ( string location ) : Aura.Data

Creates new location based on "client path". E.g. "Ula_DgnHall_Runda_after/_Ula_DgnHall_Runda_after"

Officials use "paths" to describe locations in some cases, based on the world files. "MapName/Area/Event", etc. The coordinates are the center of the element for regions and areas and the actual coordinates of the event for events.

ToLocationId ( ) : long

Returns location id (i.e. 0x3000RRRRXXXXYYYY).

ToString ( ) : string

Returns a string representing this Location.

operator ( ) : bool

Method Details

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Location() public méthode

Creates new Location based on region id and position.
public Location ( int regionId, Position pos ) : Aura.Data
regionId int
pos Position
Résultat Aura.Data

Location() public méthode

Creates new Location based on region id and coordinates.
public Location ( int regionId, int x, int y ) : Aura.Data
regionId int
x int
y int
Résultat Aura.Data

Location() public méthode

New Location based on location id (i.e. 0x3000RRRRXXXXYYYY).
public Location ( long locationId ) : Aura.Data
locationId long
Résultat Aura.Data

Location() public méthode

Creates new location based on "client path". E.g. "Ula_DgnHall_Runda_after/_Ula_DgnHall_Runda_after"
Officials use "paths" to describe locations in some cases, based on the world files. "MapName/Area/Event", etc. The coordinates are the center of the element for regions and areas and the actual coordinates of the event for events.
Invalid location. Region, area, or event not found.
public Location ( string location ) : Aura.Data
location string
Résultat Aura.Data

ToLocationId() public méthode

Returns location id (i.e. 0x3000RRRRXXXXYYYY).
public ToLocationId ( ) : long
Résultat long

ToString() public méthode

Returns a string representing this Location.
public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

RegionId public_oe property

public int RegionId
Résultat int

X public_oe property

public int X
Résultat int