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

Показать файл Открыть проект

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

Метод Описание
Accept ( ) : void

Accepts trade request from creature 2.

AddItem ( Creature creature, Aura.Channel.World.Entities.Item item ) : void

Adds item to trade partner's window.

Cancel ( ) : void

Cancels trade, returning all items and closing the trade window.

Initiate ( ) : void

Initiates the trade, sending information to creature 1 and a trade request to creature 2.

Ready ( Creature creature ) : void

Puts creature into ready mode.

RemoveItem ( Creature creature, Aura.Channel.World.Entities.Item item ) : void

Removes item from trade partner's window.

Trade ( Creature creature1, Creature creature2 ) : Aura.Channel.Network.Sending

Creates a new trade session.

Приватные методы

Метод Описание
Complete ( ) : void

Completes trade session.

GetNewId ( ) : long

Returns a new trade id.

TradeItems ( Creature from, Creature to ) : void

Moves all items from one creature's trade window to another's inventory.

Wait ( Creature creature ) : void

Puts creature into waiting mode.

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

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

Accepts trade request from creature 2.
public Accept ( ) : void
Результат void

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

Adds item to trade partner's window.
public AddItem ( Creature creature, Aura.Channel.World.Entities.Item item ) : void
creature Aura.Channel.World.Entities.Creature Creature that added the item.
item Aura.Channel.World.Entities.Item Item added.
Результат void

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

Cancels trade, returning all items and closing the trade window.
public Cancel ( ) : void
Результат void

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

Initiates the trade, sending information to creature 1 and a trade request to creature 2.
public Initiate ( ) : void
Результат void

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

Puts creature into ready mode.
public Ready ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Результат void

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

Removes item from trade partner's window.
public RemoveItem ( Creature creature, Aura.Channel.World.Entities.Item item ) : void
creature Aura.Channel.World.Entities.Creature Creature that removed the item.
item Aura.Channel.World.Entities.Item Item removed.
Результат void

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

Creates a new trade session.
public Trade ( Creature creature1, Creature creature2 ) : Aura.Channel.Network.Sending
creature1 Aura.Channel.World.Entities.Creature
creature2 Aura.Channel.World.Entities.Creature
Результат Aura.Channel.Network.Sending