C# Класс Aura.Channel.World.Location

Representation of a location in the world.
Used to save locations, ie a location to warp back to.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
RegionId int
X int

Открытые методы

Метод Описание
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

Описание методов

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Location() публичный Метод

Creates new Location based on region id and position.
public Location ( int regionId, Position pos ) : Aura.Data
regionId int
pos Position
Результат Aura.Data

Location() публичный Метод

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
Результат Aura.Data

Location() публичный Метод

New Location based on location id (i.e. 0x3000RRRRXXXXYYYY).
public Location ( long locationId ) : Aura.Data
locationId long
Результат Aura.Data

Location() публичный Метод

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
Результат Aura.Data

ToLocationId() публичный Метод

Returns location id (i.e. 0x3000RRRRXXXXYYYY).
public ToLocationId ( ) : long
Результат long

ToString() публичный Метод

Returns a string representing this Location.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

Описание свойств

RegionId публичное свойство

public int RegionId
Результат int

X публичное свойство

public int X
Результат int